-
Notifications
You must be signed in to change notification settings - Fork 35
Description
I got this exception when trying to list my files. I think it has something to do with shared folders but I'm not sure.
IPYTHON trace :
In [3]: files = m.get_files()
ValueError Traceback (most recent call last)
/home/amine/Sources/python-mega/ in ()
----> 1 files = m.get_files()
/home/amine/Sources/python-mega/mega/mega.py in get_files(self)
118 k = key
119 attributes = base64urldecode(file['a'])
--> 120 attributes = dec_attr(attributes, k)
121 file['a'] = attributes
122 file['k'] = key
/home/amine/Sources/python-mega/mega/crypto.py in dec_attr(attr, key)
68 def dec_attr(attr, key):
69 attr = aes_cbc_decrypt(attr, a32_to_str(key)).rstrip('\0')
---> 70 return json.loads(attr[4:])
/usr/lib/python2.7/json/init.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
324 parse_int is None and parse_float is None and
325 parse_constant is None and object_pairs_hook is None and not kw):
--> 326 return _default_decoder.decode(s)
327 if cls is None:
328 cls = JSONDecoder
/usr/lib/python2.7/json/decoder.pyc in decode(self, s, _w)
364
365 """
--> 366 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
367 end = _w(s, end).end()
368 if end != len(s):
/usr/lib/python2.7/json/decoder.pyc in raw_decode(self, s, idx)
382 obj, end = self.scan_once(s, idx)
383 except StopIteration:
--> 384 raise ValueError("No JSON object could be decoded")
385 return obj, end
ValueError: No JSON object could be decoded