mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
[lint] Limit unneccessarily broad except clauses
Add exception qualifier(s) to bare except clauses swallowing exceptions.
This commit is contained in:
1 parent
860d6a9ace
commit
a71b3b5fa0
11 files changed
+19
-19
No files matched your search
+1
-1
@@ -282,7 +282,7 @@ class AutoShardedClient(Client):
|
||||
for vc in self.voice_clients:
|
||||
try:
|
||||
await vc.disconnect()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
to_close = [shard.ws.close() for shard in self.shards.values()]
|
||||
|
||||
Reference in new issue
Block a user