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/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/gateway.py') diff --git a/discord/gateway.py b/discord/gateway.py index 23b5de77..7e04018a 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -76,7 +76,7 @@ class KeepAliveHandler(threading.Thread): try: f.result() - except: + except Exception: pass finally: self.stop() -- cgit v1.2.3