catch any exception python and print code example Example: python catch any exception try: do_something() except: print "Caught it!"