Make naked searches ignore exceptions when using the limit_search configuration option.

This commit is contained in:
Charles Haley 2011-04-23 21:22:07 +01:00
parent 8b4879e960
commit 835107bf21

View File

@ -630,8 +630,11 @@ class ResultCache(SearchQueryParser): # {{{
terms.add(l)
if terms:
for l in terms:
matches |= self.get_matches(l, query,
candidates=candidates, allow_recursion=allow_recursion)
try:
matches |= self.get_matches(l, query,
candidates=candidates, allow_recursion=allow_recursion)
except:
pass
return matches
if location in self.field_metadata: