Sitelet https://web.archive.org/web/20221223163347/https://github.com/python/cpython/pull/30878
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-46510: simplify exception handling code in xmlrpc #30878

Merged
merged 1 commit into from Jan 25, 2022

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jan 25, 2022 •

All of these are covered by tests.

https://bugs.python.org/issue46510

@iritkatriel iritkatriel changed the title bpo-46510: remove Python2-style exception handling code in xmlrpc bpo-46510: simplify exception handling code in xmlrpc Jan 25, 2022
Copy link
Member

@vstinner vstinner left a comment

LGTM.

I would be better to only catch Exception, rather than BaseException, but it should be addressed in a separated PR if anyone cares. This change is more a refactoring, it's better if it doesn't change the behavior ;-)

@iritkatriel
Copy link
Member Author

iritkatriel commented Jan 25, 2022

This change is more a refactoring, it's better if it doesn't change the behavior ;-)

Exactly - I don't know the context enough to know whether just Exception is ok.

Thank you for the review.

@iritkatriel iritkatriel merged commit d69d3d8 into python:main Jan 25, 2022
11 checks passed
@iritkatriel iritkatriel deleted the bpo-46510-1 branch Dec 7, 2022
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.

None yet

5 participants