selectors.py
changeset 4340 cc0fe6279181
parent 4327 e397b921c40f
child 4458 6151849f41e0
--- a/selectors.py	Mon Jan 25 19:18:33 2010 +0100
+++ b/selectors.py	Mon Jan 25 19:18:59 2010 +0100
@@ -345,7 +345,7 @@
 
     @lltrace
     def __call__(self, cls, req, rset=None, row=None, col=0, **kwargs):
-        return rset and self.match_expected(len(rset.rows[0]))
+        return rset and self.match_expected(len(rset.rows[0])) or 0 # *must not* return None
 
 
 @objectify_selector