mirror of
https://github.com/instaloader/instaloader.git
synced 2024-11-04 09:22:29 +01:00
parent
e725ca2640
commit
2790342a09
@ -239,6 +239,12 @@ class InstaloaderContext:
|
|||||||
resp_json['message']))
|
resp_json['message']))
|
||||||
else:
|
else:
|
||||||
raise ConnectionException("Login error: \"{}\" status.".format(resp_json['status']))
|
raise ConnectionException("Login error: \"{}\" status.".format(resp_json['status']))
|
||||||
|
if 'authenticated' not in resp_json:
|
||||||
|
# Issue #472
|
||||||
|
if 'message' in resp_json:
|
||||||
|
raise ConnectionException("Login error: Unexpected response, \"{}\".".format(resp_json['message']))
|
||||||
|
else:
|
||||||
|
raise ConnectionException("Login error: Unexpected response, this might indicate a blocked IP.")
|
||||||
if not resp_json['authenticated']:
|
if not resp_json['authenticated']:
|
||||||
if resp_json['user']:
|
if resp_json['user']:
|
||||||
# '{"authenticated": false, "user": true, "status": "ok"}'
|
# '{"authenticated": false, "user": true, "status": "ok"}'
|
||||||
|
Loading…
Reference in New Issue
Block a user