Catch lora attribute error

Should fix the issue for older webui versions.
Closes #119, #124
This commit is contained in:
Dominik Reh
2023-02-05 17:19:24 +01:00
parent dc34db53e4
commit bb82f208c0

View File

@@ -20,9 +20,12 @@ TAGS_PATH = Path(scripts.basedir()).joinpath('tags')
# The path to the folder containing the wildcards and embeddings
WILDCARD_PATH = FILE_DIR.joinpath('scripts/wildcards')
EMB_PATH = Path(shared.cmd_opts.embeddings_dir)
LORA_PATH = Path(shared.cmd_opts.lora_dir)
HYP_PATH = Path(shared.cmd_opts.hypernetwork_dir)
try:
LORA_PATH = Path(shared.cmd_opts.lora_dir)
except AttributeError:
LORA_PATH = None
def find_ext_wildcard_paths():
"""Returns the path to the extension wildcards folder"""