How can I write a try/except block that catches all exceptions?
try
except
You can do this to handle general exceptions
try: a = 2/0 except Exception as e: print e.__doc__ print e.message