core: Explain why we let LookupError through for search
This commit is contained in:
parent
682c6b1c6c
commit
928b8df08c
@ -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.',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user