how to use except for any error in python code example Example: python catch any exception try: do_something() except: print "Caught it!"