Sfoglia il codice sorgente

Add log when there are no galleries

master
Marien Fressinaud 6 anni fa
parent
commit
7ec1fd0cde
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      boop.py

+ 1
- 0
boop.py Vedi File

@@ -242,6 +242,7 @@ def main():
pictures_folder = os.path.join(os.curdir, PICTURES_DIR_NAME)
galleries = list(list_galleries_in(pictures_folder))
if len(galleries) == 0:
print(f"No galleries found in {pictures_folder}")
return
galleries.sort(key=itemgetter("name"))
print(f"{len(galleries)} galleries found.")

Loading…
Annulla
Salva