Skip to content

Conversation

@iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Dec 8, 2021

This is a step in the error handling tidy-up. I'm breaking it up because otherwise it's too much to review.

This PR breaks up print_exception by extracting parts of it to separate functions. Error handling in the new functions follow the standardized format, but print_exception itself not yet.

https://bugs.python.org/issue45635

…eback and print_exception_message out of print_exception
Copy link
Contributor

@asvetlov asvetlov left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

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

Nice readability improvement. (I'd change the PR title to bpo-45635: refactor print_exception())

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
@iritkatriel iritkatriel changed the title bpo-45635: extract print_exception_invalid_type, print_exception_trac… bpo-45635: refactor print_exception() into smaller functions Dec 8, 2021
iritkatriel and others added 2 commits December 8, 2021 14:40
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
@iritkatriel iritkatriel added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 8, 2021
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit f06843b 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 8, 2021
@iritkatriel
Copy link
Member Author

The failed testruns are failing on other branches as well, we have refleaks tests passing. So I'm merging. Thank you!

@iritkatriel iritkatriel merged commit f893bb2 into python:main Dec 8, 2021
@iritkatriel iritkatriel deleted the bpo-45635-pythonrun branch December 8, 2021 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants