Fixed a missed 2fa-2sa transition
This commit is contained in:
parent
4daf035689
commit
3899363167
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class PyiCloudSession(requests.Session):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def _raise_error(self, code, reason):
|
def _raise_error(self, code, reason):
|
||||||
if self.service.requires_2fa and \
|
if self.service.requires_2sa and \
|
||||||
reason == 'Missing X-APPLE-WEBAUTH-TOKEN cookie':
|
reason == 'Missing X-APPLE-WEBAUTH-TOKEN cookie':
|
||||||
raise PyiCloud2SARequiredError(response.url)
|
raise PyiCloud2SARequiredError(response.url)
|
||||||
if code == 'ZONE_NOT_FOUND' or code == 'AUTHENTICATION_FAILED':
|
if code == 'ZONE_NOT_FOUND' or code == 'AUTHENTICATION_FAILED':
|
||||||
|
|
Loading…
Reference in a new issue