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:
liris
2014-02-13 12:57:46 +09:00

View File

@@ -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: