[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - Publish.py:1.159

Christian Theune ct@gocept.com
Mon, 17 Mar 2003 06:12:13 -0500


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv14411/lib/python/ZPublisher

Modified Files:
	Publish.py 
Log Message:
applied (hopefully) final patch for bug 741


=== Zope/lib/python/ZPublisher/Publish.py 1.158 => 1.159 ===
--- Zope/lib/python/ZPublisher/Publish.py:1.158	Sun Feb  2 07:11:01 2003
+++ Zope/lib/python/ZPublisher/Publish.py	Mon Mar 17 06:12:11 2003
@@ -106,7 +106,8 @@
         if transactions_manager: transactions_manager.abort()
 
         # DM: provide nicer error message for FTP
-        sm= getattr(response,'setMessage',None)
+        try: sm= response.setMessage
+        except: sm= None
         if sm is not None:
             from ZServer.medusa.asyncore import compact_traceback
             cl,val= sys.exc_info()[:2]