[z3-checkins] r5761 - z3/Five/branch/dc-experiments

dreamcatcher at codespeak.net dreamcatcher at codespeak.net
Wed Jul 28 21:46:08 MEST 2004


Author: dreamcatcher
Date: Wed Jul 28 21:46:08 2004
New Revision: 5761

Modified:
   z3/Five/branch/dc-experiments/traversable.py
Log:
Might raise NotFound, too.

Modified: z3/Five/branch/dc-experiments/traversable.py
==============================================================================
--- z3/Five/branch/dc-experiments/traversable.py	(original)
+++ z3/Five/branch/dc-experiments/traversable.py	Wed Jul 28 21:46:08 2004
@@ -10,6 +10,7 @@
 
 $Id$
 """
+from zExceptions import NotFound
 from zope.exceptions import NotFoundError
 from zope.component import getView, ComponentLookupError
 from zope.interface import implements
@@ -62,7 +63,8 @@
         try:
             kw = dict(path=[name], request=REQUEST)
             return ITraverser(self).traverse(**kw).__of__(self)
-        except (ComponentLookupError, NotFoundError, AttributeError, KeyError):
+        except (ComponentLookupError, NotFoundError,
+                AttributeError, KeyError, NotFound):
             pass
         try:
             return getattr(self, name)


More information about the z3-checkins mailing list