Suppose I have the following:
exceptions: List[Exception]
exceptions = [ ValueError,TypeError,...]
And I would like to:
try:
# do something
pass
except [e for e in exceptions]:
# do something else
How would I do this?
Suppose I have the following:
exceptions: List[Exception]
exceptions = [ ValueError,TypeError,...]
And I would like to:
try:
# do something
pass
except [e for e in exceptions]:
# do something else
How would I do this?