diff --git a/discord/gateway.py b/discord/gateway.py index da02d1199..df46305ba 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -45,10 +45,6 @@ __all__ = [ 'ReconnectWebSocket', 'DiscordWebSocket', 'KeepAliveHandler', 'VoiceKeepAliveHandler', 'DiscordVoiceWebSocket', 'ResumeWebSocket' ] -class ReconnectWebSocket(Exception): - """Signals to handle the RECONNECT opcode.""" - pass - class ResumeWebSocket(Exception): """Signals to initialise via RESUME opcode instead of IDENTIFY.""" pass @@ -339,7 +335,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): # internal exception signalling to reconnect. log.info('Received RECONNECT opcode.') yield from self.close() - raise ReconnectWebSocket() + raise ResumeWebsocket() if op == self.HEARTBEAT_ACK: self._keep_alive.ack()