[Mod]调整onErrorMsg函数

This commit is contained in:
vn.py 2018-12-26 12:31:28 +08:00
parent e8bf28bd8d
commit d25065fdea

View File

@ -498,9 +498,9 @@ class HuobiWebsocketApiBase(WebsocketClient):
print("data : {}".format(packet)) print("data : {}".format(packet))
#---------------------------------------------------------------------- #----------------------------------------------------------------------
def onError(self, packet): # type: (dict)->None def onErrorMsg(self, packet): # type: (dict)->None
"""""" """"""
print("error : {}".format(packet)) self.gateway.writeLog(packet['err-msg']))
######################################################################## ########################################################################