Update discord_connector.py
This commit is contained in:
parent
6fcfc50107
commit
d117a83e63
1 changed files with 1 additions and 3 deletions
|
|
@ -757,11 +757,9 @@ 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
|
||||
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