mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-22 00:14:10 +00:00
Add logging of responses if invalid
This commit is contained in:
parent
65b9a51333
commit
96a77d842a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue