From 533f0c10c9a025a6945fdb6324ed985c9822f023 Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 26 May 2020 17:54:25 +0200 Subject: [PATCH] How I have done this ._. --- extensions/extension.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/extension.py b/extensions/extension.py index cad55bb..bbdb874 100644 --- a/extensions/extension.py +++ b/extensions/extension.py @@ -27,7 +27,7 @@ class Extension(commands.Cog): async def extension_load(self, ctx: commands.Context, name: str): try: self.bot.load_extension(name) - except Extension as e: + except Exception as e: await ctx.message.add_reaction("\u26a0") else: await ctx.message.add_reaction("\U0001f44d") @@ -37,7 +37,7 @@ class Extension(commands.Cog): async def extension_unload(self, ctx: commands.Context, name: str): try: self.bot.unload_extension(name) - except Extension as e: + except Exception as e: await ctx.message.add_reaction("\u26a0") else: await ctx.message.add_reaction("\U0001f44d") @@ -48,7 +48,7 @@ class Extension(commands.Cog): try: self.bot.unload_extension(name) self.bot.load_extension(name) - except Extension as e: + except Exception as e: await ctx.message.add_reaction("\u26a0") else: await ctx.message.add_reaction("\U0001f44d")