From 5e41650d50f63f1ef5e653a82661f37b8ffb78c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 7 Jan 2016 20:23:49 +0100 Subject: [PATCH] Don't generate clientId twice We already generate and store the client ID in self.client_id, so no need to re-generate it in refresh_validate(). --- pyicloud/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyicloud/base.py b/pyicloud/base.py index a774c07..8c6cdac 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -92,10 +92,9 @@ class PyiCloudService(object): ) self.params.update({'id': sha.hexdigest().upper()}) - clientId = str(uuid.uuid1()).upper() self.params.update({ 'clientBuildNumber': '14E45', - 'clientId': clientId, + 'clientId': self.client_id, }) def authenticate(self):