diff --git a/disco/gateway/client.py b/disco/gateway/client.py index 58ccc5b..75acd42 100644 --- a/disco/gateway/client.py +++ b/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: diff --git a/disco/voice/client.py b/disco/voice/client.py index 2a48346..8f6ce40 100644 --- a/disco/voice/client.py +++ b/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: