Merge pull request #28 from VoIPCS/fix_unicode

Version bump and unicode fix in send_action
master
Randall Degges 2016-11-04 11:22:50 -07:00 committed by GitHub
commit 2c9de6490c
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'] __all__ = ['agi', 'agitb', 'config', 'manager']
__version__ = '0.4.9' __version__ = '0.5.0'

View File

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