Skip to content

Do not swallow callback's ValueError#99

Open
edelooff wants to merge 2 commits into
Pylons:mainfrom
edelooff:do-not-swallow-callback-valueerror
Open

Do not swallow callback's ValueError#99
edelooff wants to merge 2 commits into
Pylons:mainfrom
edelooff:do-not-swallow-callback-valueerror

Conversation

@edelooff

@edelooff edelooff commented Jun 4, 2025

Copy link
Copy Markdown

This defers the tuple destructuring in callback execution out of the for-loop and places it in a tighter try/except block to protect against metaclass shenanigans. The callback(...) call is therefore moved outside of the try/except block and any ValueErrors raised here do not get swallowed (resolves #98).

There's also a small fix to the toml file to exclude the env directory from black and isort. Following the contribution setup instructions this directory is placed inside the git repo but wasn't yet excluded from lint checks (both slowing linting down and failing for unrelated reasons).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Callback execution silences ValueError

1 participant