Merge lp:~cbhaley/calibre/calibre_dev into lp:calibre

Proposed by Charles Haley
Status: Merged
Merged at revision: 8999
Proposed branch: lp:~cbhaley/calibre/calibre_dev
Merge into: lp:calibre
Diff against target: 17 lines (+5/-2)
1 file modified
src/calibre/library/caches.py (+5/-2)
To merge this branch: bzr merge lp:~cbhaley/calibre/calibre_dev
Reviewer Review Type Date Requested Status
Kovid Goyal Pending
Review via email: mp+58881@code.launchpad.net

Description of the change

Make searches ignore exceptions when using the limit_search option. Fixes problem referred to in http://www.mobileread.com/forums/showthread.php?t=130548

To post a comment you must log in.
lp:~cbhaley/calibre/calibre_dev updated
8999. By Kovid Goyal

...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/calibre/library/caches.py'
--- src/calibre/library/caches.py 2011-04-23 12:02:20 +0000
+++ src/calibre/library/caches.py 2011-04-23 20:27:27 +0000
@@ -630,8 +630,11 @@
630 terms.add(l)630 terms.add(l)
631 if terms:631 if terms:
632 for l in terms:632 for l in terms:
633 matches |= self.get_matches(l, query,633 try:
634 candidates=candidates, allow_recursion=allow_recursion)634 matches |= self.get_matches(l, query,
635 candidates=candidates, allow_recursion=allow_recursion)
636 except:
637 pass
635 return matches638 return matches
636639
637 if location in self.field_metadata:640 if location in self.field_metadata:

Subscribers

People subscribed via source and target branches