Skip to content
New issue

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

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

Already on GitHub? # to your account

For _rm, raise multiple exceptions instead of the first. #492

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alxmrs
Copy link
Contributor

@alxmrs alxmrs commented Aug 28, 2022

I'm following this example to raise multiple exceptions, with the intention that this will help me better debug a GCS error: https://stackoverflow.com/a/50414672.

I'm following this example to raise multiple exceptions, with the intention that this will help me better debug a GCS error: https://stackoverflow.com/a/50414672.
@martindurant
Copy link
Member

Do you think you can create a test showing this in operation?

I think the idea is reasonable.

@ap--
Copy link
Contributor

ap-- commented Aug 31, 2022

This seems to be related to ExceptionGroups
There's also a backport: https://github.com/agronholm/exceptiongroup

And here's a relevant discussion https://discuss.python.org/t/accepting-pep-654-exception-groups-and-except/10813/41

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants