Compare commits
1 commit
master
...
switch_to_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eef5d288c3 |
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class Events(StreamingAPI):
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.message_handler:
|
if self.message_handler:
|
||||||
self.message_handler(message)
|
self.message_handler(event)
|
||||||
|
|
||||||
def _on_error(self, ws, e):
|
def _on_error(self, ws, e):
|
||||||
if isinstance(e, websocket._exceptions.WebSocketBadStatusException) and getattr(e, "status_code") == 401:
|
if isinstance(e, websocket._exceptions.WebSocketBadStatusException) and getattr(e, "status_code") == 401:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue