The LookupError lets one think that the database is missing an object, but in reality the select criterias are wrong

This commit is contained in:
Patrick Gerken 2012-05-29 19:59:41 +03:00
parent f7110cc930
commit 5cfe8d8670
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class PathSource(object):
if brain is None:
return self._placeholderTerm(value)
if not self.isBrainSelectable(brain):
raise LookupError(value)
raise LookupError('Value "%s" does not match criteria for field' % str(value))
return self.getTermByBrain(brain)
# Query API - used to locate content, e.g. in non-JS mode