Skip to content

Commit

Permalink
mistake in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fver committed Sep 25, 2023
1 parent b9c2c80 commit 177705a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/icloudpd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,10 +767,7 @@ 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 @@ -781,23 +778,15 @@ 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]
except PyiCloudAPIResponseError as err:
# For later: come up with a nicer message to the user. For now take the
# 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 177705a

Please sign in to comment.