[pixiv] output debug message on failed login attempt

(#1192)
This commit is contained in:
Mike Fährmann
2020-12-22 14:59:31 +01:00
parent b58e605dc7
commit 3bd08acc8f

View File

@@ -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"]