[Zope-Checkins] SVN: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py Catch all possible (in Zope2) traversal exceptions

Philipp von Weitershausen philikon at philikon.de
Sun May 28 11:14:21 EDT 2006


Log message for revision 68312:
  Catch all possible (in Zope2) traversal exceptions
  

Changed:
  U   Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py

-=-
Modified: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py
===================================================================
--- Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py	2006-05-28 13:54:27 UTC (rev 68311)
+++ Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py	2006-05-28 15:14:20 UTC (rev 68312)
@@ -237,7 +237,7 @@
         try:
             ob1 = boboAwareZopeTraverse(ob1, name, None)
             ob2 = boboAwareZopeTraverse(ob2, name, None)
-        except LookupError:
+        except ZopeUndefs:
             return False
         return ob1 == ob2
 



More information about the Zope-Checkins mailing list