Browse Source

Restore bits affected by revert

pull/129/head
“elderlabs” 7 years ago
parent
commit
fb99b18b7e
  1. 2
      disco/gateway/client.py
  2. 2
      disco/voice/client.py

2
disco/gateway/client.py

@ -194,7 +194,7 @@ class GatewayClient(LoggingClass):
if isinstance(error, KeyboardInterrupt):
self.shutting_down = True
self.ws_event.set()
raise Exception('WS recieved error: %s', error)
raise Exception('WS received error: {}'.format(error))
def on_open(self):
if self.zlib_stream_enabled:

2
disco/voice/client.py

@ -406,7 +406,7 @@ class VoiceClient(LoggingClass):
channel_id = self.server_id
if not channel_id:
raise VoiceException('[%s] cannot connect to an empty channel id', self)
raise VoiceException('[{}] cannot connect to an empty channel id'.format(self))
if self.channel_id == channel_id:
if self.state == VoiceState.CONNECTED:

Loading…
Cancel
Save