[lint] Limit unneccessarily broad except clauses
Add exception qualifier(s) to bare except clauses swallowing exceptions.
This commit is contained in:
@@ -240,7 +240,7 @@ class Command:
|
||||
|
||||
try:
|
||||
module = converter.__module__
|
||||
except:
|
||||
except AttributeError:
|
||||
pass
|
||||
else:
|
||||
if module.startswith('discord.') and not module.endswith('converter'):
|
||||
|
||||
Reference in New Issue
Block a user