cover /all/ websocket connection disconnects with a retry

master
cynic 3 years ago
parent 0303f7fb77
commit 7c24860ad0
  1. 4
      client.py

@ -56,8 +56,12 @@ class client():
while True:
try:
asyncio.run(self.shit())
except websockets.exceptions.ConnectionClosed:
pass
except websockets.exceptions.ConnectionClosedError:
pass
except websockets.exceptions.ConnectionClosedOK:
pass
def get_channel(self, id):
endpoint = f"https://discordapp.com/api/channels/{id}"

Loading…
Cancel
Save