Merge pull request #28 from VoIPCS/fix_unicode
Version bump and unicode fix in send_action
This commit is contained in:
commit
2c9de6490c
@ -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'
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user