core: Add warning when doing library.search with a query.
Tests and code that rely on this are not yet "warnings safe".
This commit is contained in:
parent
f4c93619d1
commit
d44e8ff6f7
@ -254,6 +254,11 @@ class LibraryController(object):
|
|||||||
'library.search() with keyword argument query is deprecated',
|
'library.search() with keyword argument query is deprecated',
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
|
|
||||||
|
if not query:
|
||||||
|
warnings.warn(
|
||||||
|
'library.search() with an empty "query" argument deprecated',
|
||||||
|
DeprecationWarning)
|
||||||
|
|
||||||
futures = {}
|
futures = {}
|
||||||
for backend, backend_uris in self._get_backends_to_uris(uris).items():
|
for backend, backend_uris in self._get_backends_to_uris(uris).items():
|
||||||
futures[backend] = backend.library.search(
|
futures[backend] = backend.library.search(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user