Version bump to 0.5.0.

Fix unicode in send_action to AMI.
master
DarkS 2016-08-26 11:40:44 +02:00
parent a9adb6bf82
commit 4c72047372
2 changed files with 2 additions and 2 deletions

View File

@ -11,4 +11,4 @@ manager - a module for interacting with the asterisk manager interface
"""
__all__ = ['agi', 'agitb', 'config', 'manager']
__version__ = '0.4.9'
__version__ = '0.5.0'

View File

@ -263,7 +263,7 @@ class Manager(object):
# lock the socket and send our command
try:
self._sock.write(command.encode('utf8'))
self._sock.write(command.encode('utf8','ignore'))
self._sock.flush()
except socket.error as e:
raise ManagerSocketException(e.errno, e.strerror)