From a9adb6bf826c0ab7556dd0adf39875749fd71bf4 Mon Sep 17 00:00:00 2001 From: DarkS Date: Tue, 3 May 2016 18:08:47 +0200 Subject: [PATCH] Added ignore in decode of received lines, if this fails kill the message_thread --- asterisk/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterisk/manager.py b/asterisk/manager.py index 2f84f68..7cd8240 100644 --- a/asterisk/manager.py +++ b/asterisk/manager.py @@ -291,7 +291,7 @@ class Manager(object): try: lines = [] for line in self._sock: - line = line.decode('utf8') + line = line.decode('utf8','ignore') # check to see if this is the greeting line if not self.title and '/' in line and not ':' in line: # store the title of the manager we are connecting to: