Merge branch 'tweaks' of https://github.com/nlevitt/websocket-client into nlevitt-tweaks
This commit is contained in:
@@ -242,7 +242,7 @@ class WebSocketApp(object):
|
|||||||
try:
|
try:
|
||||||
callback(self, *args)
|
callback(self, *args)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error(e)
|
error("error from callback {}: {}".format(callback, e))
|
||||||
if isEnabledForDebug():
|
if isEnabledForDebug():
|
||||||
_, _, tb = sys.exc_info()
|
_, _, tb = sys.exc_info()
|
||||||
traceback.print_tb(tb)
|
traceback.print_tb(tb)
|
||||||
|
Reference in New Issue
Block a user