From a71b3b5fa0a814c1610b2c685ca8bcbbb233e52a Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 22 Jun 2018 15:12:56 +0200 Subject: [lint] Limit unneccessarily broad except clauses Add exception qualifier(s) to bare except clauses swallowing exceptions. --- discord/shard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/shard.py') diff --git a/discord/shard.py b/discord/shard.py index 1f73b0de..dfa255f5 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -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()] -- cgit v1.2.3