Exception handling should be compatible with python 2.7 and 3.x.

This commit is contained in:
Omer Katz
2014-01-26 19:14:37 +02:00
parent 7d3a2e7c2b
commit fb0e34b997

View File

@@ -861,7 +861,7 @@ class WebSocketApp(object):
if data is None: if data is None:
break break
self._callback(self.on_message, data) self._callback(self.on_message, data)
except Exception, e: except Exception as e:
self._callback(self.on_error, e) self._callback(self.on_error, e)
finally: finally:
if thread: if thread: