Skip to content

Commit

Permalink
[ReTrigger] Improve invalid pattern error message logging
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed May 20, 2024
1 parent ca4da54 commit 1bfe46b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retrigger/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@ async def convert(self, ctx: commands.Context, argument: str) -> str:
re.compile(argument)
result = argument
except Exception as e:
log.error("Retrigger conversion error")
err_msg = _("`{arg}` is not a valid regex pattern. {e}").format(arg=argument, e=e)
err_msg = _("`{arg}` is not a valid regex pattern: {e}").format(arg=argument, e=e)
log.error("Retrigger invalid regex error: Pattern %s Reason %s", argument, e)
raise BadArgument(err_msg)
return result

Expand Down

0 comments on commit 1bfe46b

Please sign in to comment.