Warn when a file's attributes did not decrypt properly.
This commit is contained in:
parent
46ce080a7f
commit
78cb1706ed
1 changed files with 3 additions and 1 deletions
|
@ -867,8 +867,10 @@ class Mega:
|
||||||
for file in files['f']:
|
for file in files['f']:
|
||||||
processed_file = self._process_file(file)
|
processed_file = self._process_file(file)
|
||||||
# ensure each file has a name before returning
|
# ensure each file has a name before returning
|
||||||
if processed_file['a']:
|
if isinstance(processed_file['a'], dict):
|
||||||
files_dict[file['h']] = processed_file
|
files_dict[file['h']] = processed_file
|
||||||
|
else:
|
||||||
|
logger.warning('%s\'s attributes were not decrypted.', file['h'])
|
||||||
self._nodes = files_dict
|
self._nodes = files_dict
|
||||||
return files_dict
|
return files_dict
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue