Skip to content

show_data_on_error: catch Exception, not BaseException#2398

Open
c-tonneslan wants to merge 1 commit into
DemocracyClub:masterfrom
c-tonneslan:chore/narrow-show-data-on-error
Open

show_data_on_error: catch Exception, not BaseException#2398
c-tonneslan wants to merge 1 commit into
DemocracyClub:masterfrom
c-tonneslan:chore/narrow-show-data-on-error

Conversation

@c-tonneslan

Copy link
Copy Markdown

The context manager only wants to dump the offending data when the wrapped block raises an error. Ctrl+C and SystemExit shouldn't trigger the JSON dump on the way out, they should just propagate.

The context manager only wants to dump the offending data when the
wrapped block raises an error. Ctrl+C and SystemExit shouldn't trigger
the JSON dump on the way out, they should just propagate.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
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.

1 participant