I want to get a handle to the exception raised in a Python Script try: x=1/0 except: print exception.id() print exception.traceback() is there a built in var for the exception object. I need the type of exception and perhaps the line number I understand i can't import sys so how is this done?? TIA