Avoids error on empty search query
This commit is contained in:
parent
daf2fd1667
commit
66b7a3d193
2 changed files with 4 additions and 2 deletions
|
@ -15,6 +15,8 @@ class ConnectorException(HTTPError):
|
|||
|
||||
def search(query, min_confidence=0.1):
|
||||
""" find books based on arbitary keywords """
|
||||
if not query:
|
||||
return []
|
||||
results = []
|
||||
|
||||
# Have we got a ISBN ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue