[Zope-CVS] CVS: Products/ExternalEditor - zopeedit.py:1.13
Casey Duncan
casey@zope.com
Tue, 11 Jun 2002 09:42:10 -0400
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv4452
Modified Files:
zopeedit.py
Log Message:
Moved exception printer so it prints the *right* exception...
=== Products/ExternalEditor/zopeedit.py 1.12 => 1.13 ===
response = NullResponse()
response.reason = sys.exc_info()[1]
+ sys.stderr.write('\n -- Zope Request Traceback --\n')
+ traceback.print_exc(file=sys.stderr)
+
try:
response.status, response.reason = response.reason
except:
response.status = 0
- sys.stderr.write('\n -- Zope Request Traceback --\n')
- traceback.print_exc(file=sys.stderr)
return response
title = 'Zope External Editor'