gcsfs icon indicating copy to clipboard operation
gcsfs copied to clipboard

For `_rm`, raise multiple exceptions instead of the first.

Open alxmrs opened this issue 3 years ago • 2 comments

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.

alxmrs avatar Aug 28 '22 02:08 alxmrs

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

I think the idea is reasonable.

martindurant avatar Aug 29 '22 17:08 martindurant

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

ap-- avatar Aug 31 '22 07:08 ap--