Merge pull request #10 from jlejeune/pull_request

Forget to init self.users_keys variable
This commit is contained in:
Richard O'Dwyer 2013-02-28 08:28:25 -08:00
commit 9bbb2b815b

View file

@ -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(