Browse Source

flake8 error fix

pull/106/head
Dan 7 years ago
parent
commit
1c9bfb6be0
  1. 3
      disco/voice/client.py

3
disco/voice/client.py

@ -381,7 +381,8 @@ class VoiceClient(LoggingClass):
self._reconnects += 1 self._reconnects += 1
if self.max_reconnects and self._reconnects > self.max_reconnects: 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: # Don't resume for these error codes:
if 4000 <= code <= 4016: if 4000 <= code <= 4016:

Loading…
Cancel
Save