Added ignore in decode of received lines, if this fails kill the message_thread

master
DarkS 2016-05-03 18:08:47 +02:00
parent 7cb9bba367
commit a9adb6bf82
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class Manager(object):
try: try:
lines = [] lines = []
for line in self._sock: for line in self._sock:
line = line.decode('utf8') line = line.decode('utf8','ignore')
# check to see if this is the greeting line # check to see if this is the greeting line
if not self.title and '/' in line and not ':' in line: if not self.title and '/' in line and not ':' in line:
# store the title of the manager we are connecting to: # store the title of the manager we are connecting to: