handle JSONDecodeError when switching accounts

This commit is contained in:
slikie 2023-04-18 15:45:17 +08:00 committed by GitHub
parent af5c5691ab
commit 6fcfc50107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):