Check if a book is already shelved after import

This commit is contained in:
Mouse Reeve
2021-01-02 11:59:14 -08:00
parent 3344eed3b9
commit 8c8aae2c92
2 changed files with 13 additions and 11 deletions

View File

@ -205,7 +205,7 @@ def get_data(url):
'User-Agent': settings.USER_AGENT,
},
)
except RequestError:
except (RequestError, SSLError):
raise ConnectorException()
if not resp.ok:
resp.raise_for_status()