Avoids error on empty search query

This commit is contained in:
Mouse Reeve
2021-03-31 12:03:58 -07:00
parent daf2fd1667
commit 66b7a3d193
2 changed files with 4 additions and 2 deletions

View File

@ -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 ?