Fix a harmless error message that could occur in rare circumstances while editing metadata in the library. Fixes #1315735 [runtime error while editing metadata](https://bugs.launchpad.net/calibre/+bug/1315735)

This commit is contained in:
Kovid Goyal 2014-05-04 07:57:56 +05:30
parent bf51722403
commit e5bb1ed4a6

View File

@ -814,7 +814,7 @@ class Search(object):
def _update_caches(self, sqp, book_ids):
book_ids = sqp.all_book_ids = set(book_ids)
remove = set()
for query, result in self.cache:
for query, result in tuple(self.cache):
try:
matches = sqp.parse(query)
except ParseException: