Is it possible to catch any error in Python? I don\'t care what the specific exceptions will be, because all of them will have the same fallback.
The following only worked for me (both in PY2 and PY3):
try: # (Anything that produces any kind of error) except: ertype = sys.exc_info()[0] # E.g. description = sys.exc_info()[1] # E.g. [Errno 13] Permission denied: ... # (Handle as needed )