core: Explain why we let LookupError through for search

This commit is contained in:
Thomas Adamcik 2015-04-08 21:10:21 +02:00
parent 682c6b1c6c
commit 928b8df08c

View File

@ -297,6 +297,9 @@ class LibraryController(object):
'%s does not implement library.search() with "exact" '
'support. Please upgrade it.', backend_name)
except LookupError:
# Some of our tests check for this to catch bad queries. This
# is silly and should be replaced with query validation before
# passing it to the backends.
raise
except Exception:
logger.exception('%s backend caused an exception.',