Merge branch 'tweaks' of https://github.com/nlevitt/websocket-client into nlevitt-tweaks

This commit is contained in:
liris
2015-10-27 15:50:35 +09:00

View File

@@ -242,7 +242,7 @@ class WebSocketApp(object):
try:
callback(self, *args)
except Exception as e:
error(e)
error("error from callback {}: {}".format(callback, e))
if isEnabledForDebug():
_, _, tb = sys.exc_info()
traceback.print_tb(tb)