diff --git a/websocket/__init__.py b/websocket/__init__.py index 1a12f1e..f32684d 100644 --- a/websocket/__init__.py +++ b/websocket/__init__.py @@ -985,7 +985,7 @@ class WebSocketApp(object): if callback: try: callback(self, *args) - except Exception, e: + except Exception as e: logger.error(e) if logger.isEnabledFor(logging.DEBUG): _, _, tb = sys.exc_info()