Merge pull request #296 from slikie/patch-1
Fix program crash when switching accounts due to empty unhandled WS message #1
This commit is contained in:
commit
f7058f7171
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ class DiscordConnector:
|
|||
# Connection was closed in the meantime
|
||||
return True
|
||||
recv, _w, _e = select.select((self.websocket.sock,), (), (), 0)
|
||||
except websocket.WebSocketConnectionClosedException:
|
||||
except (websocket.WebSocketConnectionClosedException, json.decoder.JSONDecodeError):
|
||||
self.on_close()
|
||||
return True
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue