aboutsummaryrefslogtreecommitdiffstats
path: root/modules/modelloader.py
diff options
context:
space:
mode:
authorunknown <mcgpapu@gmail.com>2023-02-05 13:24:57 +0000
committerunknown <mcgpapu@gmail.com>2023-02-05 13:24:57 +0000
commit501d4e9cf111c2b94805181e3ab2e1b8b5d81f31 (patch)
tree712d6e405c406e573e8f2b7f44b9e4462432ff61 /modules/modelloader.py
parent5e1f4f7464e560a2468812fc9d5cb38659cff86c (diff)
parentea9bd9fc7409109adcd61b897abc2c8881161256 (diff)
downloadstable-diffusion-webui-gfx803-501d4e9cf111c2b94805181e3ab2e1b8b5d81f31.tar.gz
stable-diffusion-webui-gfx803-501d4e9cf111c2b94805181e3ab2e1b8b5d81f31.tar.bz2
stable-diffusion-webui-gfx803-501d4e9cf111c2b94805181e3ab2e1b8b5d81f31.zip
Merge branch 'master' of github.com:AUTOMATIC1111/stable-diffusion-webui into gamepad
Diffstat (limited to 'modules/modelloader.py')
-rw-r--r--modules/modelloader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/modelloader.py b/modules/modelloader.py
index e9aa514e..fc3f6249 100644
--- a/modules/modelloader.py
+++ b/modules/modelloader.py
@@ -45,6 +45,9 @@ def load_models(model_path: str, model_url: str = None, command_path: str = None
full_path = file
if os.path.isdir(full_path):
continue
+ if os.path.islink(full_path) and not os.path.exists(full_path):
+ print(f"Skipping broken symlink: {full_path}")
+ continue
if ext_blacklist is not None and any([full_path.endswith(x) for x in ext_blacklist]):
continue
if len(ext_filter) != 0: