From 835107bf21ad0129d5298e630e10d628f9c2e7f7 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sat, 23 Apr 2011 21:22:07 +0100 Subject: [PATCH] Make naked searches ignore exceptions when using the limit_search configuration option. --- src/calibre/library/caches.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index 16661056e8..e4342988b8 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -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: