handle JSONDecodeError when switching accounts
This commit is contained in:
parent
af5c5691ab
commit
6fcfc50107
1 changed files with 2 additions and 0 deletions
|
|
@ -760,6 +760,8 @@ class DiscordConnector:
|
|||
except websocket.WebSocketConnectionClosedException:
|
||||
self.on_close()
|
||||
return True
|
||||
except json.decoder.JSONDecodeError:
|
||||
return True
|
||||
return True
|
||||
|
||||
def start_listening_text(self, channel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue