You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error handlers that take args: Args crash with a missing 'next' argument #1598
The original RuntimeError is lost. In slack_bolt/kwargs_injection/utils.py (build_required_kwargs) and async_utils.py, next is removed from the available arguments for error handlers, but Args(**all_available_args) is then built from that reduced dict, and Args requires next. The same code also uses arg_names.pop() on the listener's own list, so the list shrinks on every call.
I have a fix with sync and async tests in #1592. It also adds an error field to Args so error handlers can read the exception through args.
Requirements
I have read the Contributing guidelines and Code of Conduct.
Activity