[lint] Rename exception variables to exc

Use the more explicit (and common) exc instead of e as the variable
holding the exception in except handlers.
This commit is contained in:
Hornwitser authored and Rapptz committed 2018-11-24 22:17:57 -05:00
1 parent 4ae8e81660
commit fa46b07db1
10 files changed
+66 -66

No files matched your search

+3 -3
View File
@@ -224,9 +224,9 @@ class VoiceClient:
while True:
try:
await self.ws.poll_event()
except (ConnectionClosed, asyncio.TimeoutError) as e:
if isinstance(e, ConnectionClosed):
if e.code == 1000:
except (ConnectionClosed, asyncio.TimeoutError) as exc:
if isinstance(exc, ConnectionClosed):
if exc.code == 1000:
await self.disconnect()
break