Commit 2260802d authored by comfyanonymous's avatar comfyanonymous
Browse files

Check if folder_name is valid instead of just throwing exception.

parent 9af7033c
......@@ -125,6 +125,8 @@ def filter_files_extensions(files, extensions):
def get_full_path(folder_name, filename):
global folder_names_and_paths
if folder_name not in folder_names_and_paths:
return None
folders = folder_names_and_paths[folder_name]
filename = os.path.relpath(os.path.join("/", filename), "/")
for x in folders[0]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment