[Zope] Exceptions

drew nichols drew@mena.org.au
Wed, 14 May 2003 16:18:16 +1000


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