Warn when a file's attributes did not decrypt properly.

This commit is contained in:
voussoir 2021-08-31 01:30:10 -07:00
parent 46ce080a7f
commit 78cb1706ed
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -867,8 +867,10 @@ class Mega:
for file in files['f']:
processed_file = self._process_file(file)
# ensure each file has a name before returning
if processed_file['a']:
if isinstance(processed_file['a'], dict):
files_dict[file['h']] = processed_file
else:
logger.warning('%s\'s attributes were not decrypted.', file['h'])
self._nodes = files_dict
return files_dict