1 2 3 4 5 6 7 8 9 10 11 12
# nested try's try: print("try 1") try: print("try 2") foo() except: print("except 2") bar() except: print("except 1")