Fix albumNameEnc can be null in Photos (#300)
* Fix proposal for #285 * Update pyicloud/services/photos.py Co-authored-by: Quentame <polletquentin74@me.com>
This commit is contained in:
parent
29bb3678c1
commit
e45b6ddf1b
1 changed files with 5 additions and 0 deletions
|
@ -173,6 +173,11 @@ class PhotosService(object):
|
|||
}
|
||||
|
||||
for folder in self._fetch_folders():
|
||||
|
||||
# Skiping albums having null name, that can happen sometime
|
||||
if "albumNameEnc" not in folder["fields"]:
|
||||
continue
|
||||
|
||||
# TODO: Handle subfolders # pylint: disable=fixme
|
||||
if folder["recordName"] == "----Root-Folder----" or (
|
||||
folder["fields"].get("isDeleted")
|
||||
|
|
Loading…
Reference in a new issue