Merge pull request #28 from VoIPCS/fix_unicode

Version bump and unicode fix in send_action
This commit is contained in:
Randall Degges authored and GitHub committed 2016-11-04 11:22:50 -07:00
commit 2c9de6490c
2 files changed
+2 -2

No files matched your search

+1 -1
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'
+1 -1
View File
@@ -280,7 +280,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)