From fb99b18b7eaf1a6ca94d2d66718c0b434aa05b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Celderlabs=E2=80=9D?= Date: Tue, 12 Mar 2019 22:18:24 -0400 Subject: [PATCH] Restore bits affected by revert --- disco/gateway/client.py | 2 +- disco/voice/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: