diff --git a/vnpy/api/websocket/WebSocketClient.py b/vnpy/api/websocket/WebSocketClient.py index 9ae7cafb..3cde4ef7 100644 --- a/vnpy/api/websocket/WebSocketClient.py +++ b/vnpy/api/websocket/WebSocketClient.py @@ -154,7 +154,6 @@ class WebsocketClient(object): pass #---------------------------------------------------------------------- - @abstractmethod def onError(self, exceptionType, exceptionValue, tb): """Python错误回调""" - pass + return sys.excepthook(exceptionType, exceptionValue, tb)