everyone, my python code is something like this:
try:
foo1()
except FooError1:
try:
foo2()
except FooError2:
dosth()
raise raisesth()
I wonder if there is a try-except support for multi conditions or compound conditions in python, thus my code could be simplified as:
try:
foo1()
foo2()
except FooError1 and FooError2:
dosth()
raise raisesth()
Thanks!
foo2()under different conditions.