[Zope] identify exception in PythonScript?

Fernando Martins fmartins@hetnet.nl
Sun, 9 Mar 2003 17:14:49 +0100


Is there a way to do

try:
    something
except:
    print "Unexpected error:", sys.exc_info()[0]

in a PythonScript?

Fernando