Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fver committed Sep 25, 2023
2 parents aff0fd7 + 36ab671 commit b9c2c80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/icloudpd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,10 @@ def core(

# Access to the selected library. Defaults to the primary photos object.
library_object = icloud.photos
<<<<<<< HEAD

=======
>>>>>>> 36ab67111f5c2d35485c08ff9c845aff546e00da
while True:
# Default album is "All Photos", so this is the same as
# calling `icloud.photos.all`.
Expand All @@ -778,7 +781,11 @@ def core(
try:
library_object = icloud.photos.libraries[library]
except KeyError:
<<<<<<< HEAD
logger.error("Unknown library: %s", library)
=======
print(f"Unknown library: {library}")
>>>>>>> 36ab67111f5c2d35485c08ff9c845aff546e00da
return 1

photos = library_object.albums[album]
Expand All @@ -787,7 +794,10 @@ def core(
# exception text
logger.error("error?? %s", err)
return 1
<<<<<<< HEAD

=======
>>>>>>> 36ab67111f5c2d35485c08ff9c845aff546e00da
if list_albums:
print("Albums:")
albums_dict = library_object.albums
Expand Down

0 comments on commit b9c2c80

Please sign in to comment.