From 3899363167c1f782a8b3e90a9e5c2fe881a2cb9b Mon Sep 17 00:00:00 2001 From: dillanmills <32000177+dillanmills@users.noreply.github.com> Date: Mon, 25 Sep 2017 08:11:24 -0700 Subject: [PATCH] Fixed a missed 2fa-2sa transition --- pyicloud/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyicloud/base.py b/pyicloud/base.py index 9d6d64a..0ad84e5 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -102,7 +102,7 @@ class PyiCloudSession(requests.Session): return response 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': raise PyiCloud2SARequiredError(response.url) if code == 'ZONE_NOT_FOUND' or code == 'AUTHENTICATION_FAILED':