Mega Code Archive
Categories
/
Python
/
Language Basics
Nested try and catch
try: try: 1/0 except: print "caught an exception" except ZeroDivisionError: print "caught divide-by-0 attempt"