@@ -57,10 +57,10 @@ def stop(self):
5757
5858 def _onMessage (self , * args ):
5959 """ Called when websocket message is received.
60- In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp object
61- and the message as a STR. Current releases appear to only return the message.
60+ In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp
61+ object and the message as a STR. Current releases appear to only return the message.
6262 We are assuming the last argument in the tuple is the message.
63- This is to support compatibility with current and previous releases of websocket-client.
63+ This is to support compatibility with current and previous releases of websocket-client.
6464 """
6565 message = args [- 1 ]
6666 try :
@@ -73,10 +73,10 @@ def _onMessage(self, *args):
7373
7474 def _onError (self , * args ): # pragma: no cover
7575 """ Called when websocket error is received.
76- In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp object
77- and the error. Current releases appear to only return the error.
78- We are assuming the last argument in the tuple is the message.
79- This is to support compatibility with current and previous releases of websocket-client.
76+ In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp
77+ object and the error. Current releases appear to only return the error.
78+ We are assuming the last argument in the tuple is the message.
79+ This is to support compatibility with current and previous releases of websocket-client.
8080 """
8181 err = args [- 1 ]
8282 log .error ('AlertListener Error: %s' % err )
0 commit comments