aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/ext/commands/bot.py')
-rw-r--r--discord/ext/commands/bot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index c9ce299e..04a5452f 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -195,13 +195,13 @@ class BotBase(GroupMixin):
for extension in tuple(self.extensions):
try:
self.unload_extension(extension)
- except:
+ except Exception:
pass
for cog in tuple(self.cogs):
try:
self.remove_cog(cog)
- except:
+ except Exception:
pass
await super().close()
@@ -759,7 +759,7 @@ class BotBase(GroupMixin):
else:
try:
func(self)
- except:
+ except Exception:
pass
finally:
# finally remove the import..