diff options
| author | Hornwitser <[email protected]> | 2018-06-22 15:12:56 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 22:17:57 -0500 |
| commit | a71b3b5fa0a814c1610b2c685ca8bcbbb233e52a (patch) | |
| tree | 6e99e481ae99f632f89e906eaffbdb854bb13715 /discord/player.py | |
| parent | Revert "Rework documentation to not duplicate inherited members." (diff) | |
| download | discord.py-a71b3b5fa0a814c1610b2c685ca8bcbbb233e52a.tar.xz discord.py-a71b3b5fa0a814c1610b2c685ca8bcbbb233e52a.zip | |
[lint] Limit unneccessarily broad except clauses
Add exception qualifier(s) to bare except clauses swallowing exceptions.
Diffstat (limited to 'discord/player.py')
| -rw-r--r-- | discord/player.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/player.py b/discord/player.py index c645ae66..a31b8fd2 100644 --- a/discord/player.py +++ b/discord/player.py @@ -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): |