mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-03-14 01:30:03 +00:00
Fix unhandled TypeErrors for SDNext (#338)
This commit is contained in:
@@ -37,14 +37,14 @@ except ImportError:
|
||||
if not IS_FORGE_CLASSIC:
|
||||
try:
|
||||
HYP_PATH = Path(shared.cmd_opts.hypernetwork_dir).absolute()
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
HYP_PATH = None
|
||||
else:
|
||||
HYP_PATH = None
|
||||
|
||||
try:
|
||||
LORA_PATH = Path(shared.cmd_opts.lora_dir).absolute()
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
LORA_PATH = None
|
||||
|
||||
try:
|
||||
@@ -52,7 +52,7 @@ try:
|
||||
LYCO_PATH = Path(shared.cmd_opts.lyco_dir_backcompat).absolute()
|
||||
except:
|
||||
LYCO_PATH = Path(shared.cmd_opts.lyco_dir).absolute() # attempt original non-backcompat path
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
LYCO_PATH = None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user