merge fix on branch rev15295

svn: r15327
This commit is contained in:
Jérôme Rapinat 2010-05-05 11:47:18 +00:00
parent 788b731168
commit e2e3065cfb

View File

@ -306,7 +306,7 @@ class ProxyDbBase(DbReadBase):
""" """
Returns obj if predicate is True or not callable, else returns None Returns obj if predicate is True or not callable, else returns None
""" """
if predicate is not None: if predicate is not None and obj is not None:
return obj if predicate(obj.handle) else None return obj if predicate(obj.handle) else None
return obj return obj