Add logging of responses if invalid

This commit is contained in:
Frisk 2024-08-08 23:13:52 +02:00
parent 65b9a51333
commit 96a77d842a

View file

@ -285,6 +285,8 @@ def prepare_paths(path: str, dry=False):
if request.status_code == requests.codes.ok:
if request.json()["query"]["general"] is not None:
return request
else:
misc_logger.debug(request.text)
return False
except (KeyError, requests.exceptions.ConnectionError):
return False