diff --git a/src/mega/mega.py b/src/mega/mega.py index 906b0db..66fcc8c 100644 --- a/src/mega/mega.py +++ b/src/mega/mega.py @@ -302,8 +302,7 @@ def find_path_descriptor(self, path, files=()): for foldername in paths: if foldername != '': for file in files.items(): - if (file[1]['a'] and file[1]['t'] - and file[1]['a']['n'] == foldername): + if (isinstance (file[1]['a'], dict) and file[1]['t'] and file[1]['a']['n'] == foldername): if parent_desc == file[1]['p']: parent_desc = file[0] found = True