[Zope] identify exception in PythonScript?

Dieter Maurer dieter@handshake.de
Mon, 10 Mar 2003 00:35:08 +0100


Fernando Martins wrote at 2003-3-9 17:14 +0100:
 > 
 > Is there a way to do
 > 
 > try:
 >     something
 > except:
 >     print "Unexpected error:", sys.exc_info()[0]
 > 
 > in a PythonScript?

After you read the "README" for PythonScripts and provided
the necessary security declarations to make "sys.exc_info"
accessible...


Dieter