Skip to content

Commit

Permalink
Fixes obscurity caused by *marginally* incorrect exception instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
theunkn0wn1 committed Mar 25, 2022
1 parent 3edaebf commit 44ad6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions halpybot/packages/command/commandhandler.py
Expand Up @@ -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
Expand Down

0 comments on commit 44ad6d5

Please sign in to comment.