fix if folder does not exist
This commit is contained in:
		
							parent
							
								
									54dce14934
								
							
						
					
					
						commit
						c2ad0333e9
					
				| 
						 | 
				
			
			@ -54,6 +54,10 @@ 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