Remove handling of ReconnectWebsocket

This commit is contained in:
Anis B 2017-10-11 05:42:15 +02:00 committed by GitHub
parent 1cd50919a1
commit 09bd2f4de7

View File

@ -446,8 +446,8 @@ class Client:
while not self.is_closed:
try:
yield from self.ws.poll_event()
except (ReconnectWebSocket, ResumeWebSocket) as e:
log.info('Got ' + type(e).__name__)
except ResumeWebSocket:
log.info('Got ResumeWebsocket')
self.ws = yield from DiscordWebSocket.from_client(self, resume=True)
except ConnectionClosed as e:
yield from self.close()