fix skip
This commit is contained in:
parent
c2ad0333e9
commit
2fe3d14c27
|
@ -47,6 +47,10 @@ os.makedirs("out/gmi", exist_ok=True)
|
|||
|
||||
for folderinfo in index['folders']:
|
||||
|
||||
if not os.path.exists(folderinfo['folder']):
|
||||
print(f"Folder {folderinfo['folder']} does not exist, skipping.")
|
||||
continue
|
||||
|
||||
sectiontitle = folderinfo['title']
|
||||
|
||||
htmlhome += "\n<h2>{}</h2>\n<ul>".format(sectiontitle)
|
||||
|
@ -54,10 +58,6 @@ for folderinfo in index['folders']:
|
|||
|
||||
for fileinfo in folderinfo['files']:
|
||||
|
||||
if not os.path.exists(folderinfo['folder']):
|
||||
print(f"Folder {folderinfo['folder']} does not exist, skipping.")
|
||||
continue
|
||||
|
||||
filetitle = fileinfo['title']
|
||||
filename = fileinfo['file']
|
||||
fileroot, fileextension = os.path.splitext(filename)
|
||||
|
|
Loading…
Reference in New Issue