[pixiv] output debug message on failed login attempt

(#1192)
pull/1195/head
Mike Fährmann 4 years ago
parent b58e605dc7
commit 3bd08acc8f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -554,6 +554,7 @@ class PixivAppAPI():
response = self.extractor.request(
url, method="POST", headers=headers, data=data, fatal=False)
if response.status_code >= 400:
self.log.debug(response.text)
raise exception.AuthenticationError()
data = response.json()["response"]

Loading…
Cancel
Save