[Checkins] SVN: z3c.pt/trunk/ The exists expression evaluator should ignore KeyError exceptions as well.

Wichert Akkerman wichert at wiggy.net
Fri May 28 13:50:13 EDT 2010


Log message for revision 112808:
  The exists expression evaluator should ignore KeyError exceptions as well.

Changed:
  U   z3c.pt/trunk/CHANGES.txt
  U   z3c.pt/trunk/src/z3c/pt/expressions.py

-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt	2010-05-28 16:13:02 UTC (rev 112807)
+++ z3c.pt/trunk/CHANGES.txt	2010-05-28 17:50:12 UTC (rev 112808)
@@ -3,7 +3,8 @@
 
 In next release...
 
-- ...
+- The exists expression evaluator should ignore KeyError exceptions
+  as well.
 
 
 1.2.1 (2010/05/13)

Modified: z3c.pt/trunk/src/z3c/pt/expressions.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/expressions.py	2010-05-28 16:13:02 UTC (rev 112807)
+++ z3c.pt/trunk/src/z3c/pt/expressions.py	2010-05-28 17:50:12 UTC (rev 112808)
@@ -84,7 +84,7 @@
         return base
 
 class ZopeExistsTraverser(ZopeTraverser):
-    exceptions = AttributeError, LookupError, TypeError
+    exceptions = AttributeError, LookupError, TypeError, KeyError
 
     def __call__(self, base, request, call, *args, **kwargs):
         try:



More information about the checkins mailing list