vladak / flickrknob

yet another Flickr uploader
0 stars 1 forks source link

delete_album might not need to delete the album #7

Open vladak opened 3 years ago

vladak commented 3 years ago

It seems that after all the photos from an album are deleted, the album gets deleted automatically. The check at the end of delete_album occassionally throws exception about non existing album even on under the if statement:

# After the photos are deleted, the album might not be present anymore.
    album_id = get_album_id(flickr, args.name)
    if album_id is not None:
        delete_album(flickr, album_id)

So this is probably racing with the deletion on the Flickr side.