Skip to content

Centralise error handling for commands invoked from error handler#2436

Merged
Xithrius merged 4 commits into
mainfrom
handle-shhh-errors
Sep 19, 2023
Merged

Centralise error handling for commands invoked from error handler#2436
Xithrius merged 4 commits into
mainfrom
handle-shhh-errors

Conversation

@wookie184
Copy link
Copy Markdown
Contributor

Closes #1620

The error that prompted the original issue can be reproduced my spamming !shhh very quickly. This PR is a more general improvement that fixes this issue, ensuring all errors raised by commands run from the error handler are redirected to the error handler.

@wookie184 wookie184 added t: bug Something isn't working a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) p: 3 - low Low Priority s: needs review Author is waiting for someone to review and approve labels Mar 3, 2023
Copy link
Copy Markdown
Contributor

@Ibrahim2750mi Ibrahim2750mi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Also thanks for fixing test_dont_call_suggestion_if_user_mod using ctx.invoke.

Comment thread bot/exts/backend/error_handler.py
@Xithrius Xithrius enabled auto-merge (squash) September 19, 2023 05:23
Copy link
Copy Markdown
Contributor

@Xithrius Xithrius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the wait.

@Xithrius Xithrius merged commit 081f5b5 into main Sep 19, 2023
@Xithrius Xithrius deleted the handle-shhh-errors branch September 19, 2023 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) p: 3 - low Low Priority s: needs review Author is waiting for someone to review and approve t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"shh" alias for silence command should catch errors raised by command

5 participants