Skip to content

Commit

Permalink
Don't generate clientId twice
Browse files Browse the repository at this point in the history
We already generate and store the client ID in self.client_id, so
no need to re-generate it in refresh_validate().
  • Loading branch information
torarnv committed Jan 7, 2016
1 parent d2bbf7d commit 5e41650
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyicloud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ def refresh_validate(self):
)
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):
Expand Down

0 comments on commit 5e41650

Please sign in to comment.