mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
[lint] Limit unneccessarily broad except clauses
Add exception qualifier(s) to bare except clauses swallowing exceptions.
This commit is contained in:
@ -303,7 +303,7 @@ class AudioPlayer(threading.Thread):
|
||||
if self.after is not None:
|
||||
try:
|
||||
self.after(self._current_error)
|
||||
except:
|
||||
except Exception:
|
||||
log.exception('Calling the after function failed.')
|
||||
|
||||
def stop(self):
|
||||
|
Reference in New Issue
Block a user