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()
|
raise ConnectorException()
|
||||||
|
|
||||||
if not resp.ok:
|
if not resp.ok:
|
||||||
try:
|
raise ConnectorException()
|
||||||
resp.raise_for_status()
|
|
||||||
except requests.exceptions.HTTPError as e:
|
|
||||||
logger.exception(e)
|
|
||||||
raise ConnectorException()
|
|
||||||
try:
|
try:
|
||||||
data = resp.json()
|
data = resp.json()
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
|
|
Loading…
Reference in a new issue