From 1c9bfb6be0e4194f33b5e9595542588ed080f895 Mon Sep 17 00:00:00 2001 From: Dan <31395415+cakedan@users.noreply.github.com> Date: Thu, 2 Aug 2018 00:04:55 -0400 Subject: [PATCH] flake8 error fix --- disco/voice/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/disco/voice/client.py b/disco/voice/client.py index ff6de5a..2a48346 100644 --- a/disco/voice/client.py +++ b/disco/voice/client.py @@ -121,7 +121,7 @@ class VoiceClient(LoggingClass): @cached_property def channel(self): return self.client.state.channels.get(self.channel_id) - + @property def user_id(self): return self.client.state.me.id @@ -381,7 +381,8 @@ class VoiceClient(LoggingClass): self._reconnects += 1 if self.max_reconnects and self._reconnects > self.max_reconnects: - raise VoiceException('Failed to reconnect after {} attempts, giving up'.format(self.max_reconnects)) + raise VoiceException( + 'Failed to reconnect after {} attempts, giving up'.format(self.max_reconnects), self) # Don't resume for these error codes: if 4000 <= code <= 4016: