forked from mirrors/bookwyrm
Merge pull request #633 from mouse-reeve/overzealous-logging
way too much logging coming from http errors
This commit is contained in:
commit
27d81306e3
1 changed files with 1 additions and 5 deletions
|
@ -216,11 +216,7 @@ def get_data(url):
|
|||
raise ConnectorException()
|
||||
|
||||
if not resp.ok:
|
||||
try:
|
||||
resp.raise_for_status()
|
||||
except requests.exceptions.HTTPError as e:
|
||||
logger.exception(e)
|
||||
raise ConnectorException()
|
||||
raise ConnectorException()
|
||||
try:
|
||||
data = resp.json()
|
||||
except ValueError as e:
|
||||
|
|
Loading…
Reference in a new issue