Merge pull request #61 from thedrow/patch-1
Exception handling should be compatible with python 2.7 and 3.x.
This commit is contained in:
@@ -861,7 +861,7 @@ class WebSocketApp(object):
|
||||
if data is None:
|
||||
break
|
||||
self._callback(self.on_message, data)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
self._callback(self.on_error, e)
|
||||
finally:
|
||||
if thread:
|
||||
|
Reference in New Issue
Block a user