mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 10:02:56 +00:00
[lint] Limit unneccessarily broad except clauses
Add exception qualifier(s) to bare except clauses swallowing exceptions.
This commit is contained in:
@@ -76,7 +76,7 @@ class KeepAliveHandler(threading.Thread):
|
||||
|
||||
try:
|
||||
f.result()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
finally:
|
||||
self.stop()
|
||||
|
||||
Reference in New Issue
Block a user