[twitter] fix duplicate ArkoseLogin check

forgot to replace this in 9e5d65fbf3
pull/5712/head
Mike Fährmann 4 months ago
parent 2c8aa9b2de
commit aa9be75d44
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1886,8 +1886,9 @@ def _login_impl(extr, username, password):
raise exception.AuthenticationError("Login requires CAPTCHA") raise exception.AuthenticationError("Login requires CAPTCHA")
elif subtask == "DenyLoginSubtask": elif subtask == "DenyLoginSubtask":
raise exception.AuthenticationError("Login rejected as suspicious") raise exception.AuthenticationError("Login rejected as suspicious")
elif subtask == "ArkoseLogin": elif subtask == "LoginSuccessSubtask":
raise exception.AuthenticationError("No auth token cookie") raise exception.AuthenticationError(
"No 'auth_token' cookie received")
else: else:
raise exception.StopExtraction("Unrecognized subtask %s", subtask) raise exception.StopExtraction("Unrecognized subtask %s", subtask)

Loading…
Cancel
Save