Skip to content

Commit

Permalink
Merge pull request #906 from mouse-reeve/isbn-search-resiliency
Browse files Browse the repository at this point in the history
Handle arbitrary errors in isbn search
  • Loading branch information
mouse-reeve authored Apr 7, 2021
2 parents 2c5f62e + 954958b commit 5d45b01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bookwyrm/connectors/connector_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def search(query, min_confidence=0.1):
else:
try:
result_set = connector.isbn_search(isbn)
except (HTTPError, ConnectorException):
pass
except Exception as e: # pylint: disable=broad-except
logger.exception(e)
continue

# if no isbn search or results, we fallback to generic search
if result_set in (None, []):
Expand Down

0 comments on commit 5d45b01

Please sign in to comment.