Browse Source

Add log when there are no galleries

master
Marien Fressinaud 5 years ago
parent
commit
7ec1fd0cde
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      boop.py

+ 1
- 0
boop.py View File

pictures_folder = os.path.join(os.curdir, PICTURES_DIR_NAME) pictures_folder = os.path.join(os.curdir, PICTURES_DIR_NAME)
galleries = list(list_galleries_in(pictures_folder)) galleries = list(list_galleries_in(pictures_folder))
if len(galleries) == 0: if len(galleries) == 0:
print(f"No galleries found in {pictures_folder}")
return return
galleries.sort(key=itemgetter("name")) galleries.sort(key=itemgetter("name"))
print(f"{len(galleries)} galleries found.") print(f"{len(galleries)} galleries found.")

Loading…
Cancel
Save