From 1379bbf852d09c69b99ac78131cd8c10fbff39f2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Mar 2014 10:33:01 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/search.py b/src/calibre/gui2/tweak_book/search.py index e2b5c34625..2b4a608a71 100644 --- a/src/calibre/gui2/tweak_book/search.py +++ b/src/calibre/gui2/tweak_book/search.py @@ -740,7 +740,7 @@ class SavedSearches(Dialog): def err(): error_dialog(self, _('Invalid data'), _( 'The file %s does not contain valid saved searches') % path, show=True) - if not isinstance(obj, dict) or not 'version' in obj or not 'searches' in obj: + if not isinstance(obj, dict) or not 'version' in obj or not 'searches' in obj or obj['version'] not in (1,): return err() searches = [] for item in obj['searches']: