diff --git a/halpybot/packages/command/commandhandler.py b/halpybot/packages/command/commandhandler.py index 89bf0843..e540bacb 100644 --- a/halpybot/packages/command/commandhandler.py +++ b/halpybot/packages/command/commandhandler.py @@ -277,8 +277,8 @@ async def invoke_command( else: try: await cmd(command_context, arguments) - except Exception: - raise CommandException(Exception) from Exception + except Exception as e: + raise CommandException from e def get_commands(self, mains: bool = False): """Get a list of registered commands in a group