Merge pull request #10 from jlejeune/pull_request
Forget to init self.users_keys variable
This commit is contained in:
commit
9bbb2b815b
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ class Mega(object):
|
||||||
def _login_process(self, resp, password):
|
def _login_process(self, resp, password):
|
||||||
encrypted_master_key = base64_to_a32(resp['k'])
|
encrypted_master_key = base64_to_a32(resp['k'])
|
||||||
self.master_key = decrypt_key(encrypted_master_key, password)
|
self.master_key = decrypt_key(encrypted_master_key, password)
|
||||||
|
self.users_keys = dict()
|
||||||
if 'tsid' in resp:
|
if 'tsid' in resp:
|
||||||
tsid = base64_url_decode(resp['tsid'])
|
tsid = base64_url_decode(resp['tsid'])
|
||||||
key_encrypted = a32_to_str(
|
key_encrypted = a32_to_str(
|
||||||
|
|
Loading…
Reference in a new issue