Fix error
This commit is contained in:
parent
5e9b293b75
commit
9ed3432cd8
@ -303,7 +303,7 @@ def process_directory(gallery_name, settings, parent_templates, parent_gallery_p
|
|||||||
gallery_cover = create_cover(gallery_name, gallery_settings, gallery_path)
|
gallery_cover = create_cover(gallery_name, gallery_settings, gallery_path)
|
||||||
|
|
||||||
if sub_galleries:
|
if sub_galleries:
|
||||||
error(gallery_settings.get("sections"),
|
error(gallery_settings.get("sections") is not False,
|
||||||
"The gallery in %s can't have both sections and subgalleries" % (os.path.join(gallery_name,
|
"The gallery in %s can't have both sections and subgalleries" % (os.path.join(gallery_name,
|
||||||
"settings.yaml")))
|
"settings.yaml")))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user