aboutsummaryrefslogtreecommitdiffstats
path: root/modules/modelloader.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-02-19 09:30:58 +0000
committerGitHub <noreply@github.com>2023-02-19 09:30:58 +0000
commitcfc9849f3f64977936769b6479d6b2231ecbfc5b (patch)
tree51b29ea3b255fe43b0fe7560f9f7fdd23a475427 /modules/modelloader.py
parent5afd9e82c3829348c58803cd85b02c87308fffae (diff)
parentd99bd04b3f8c7753e31aa6dea6109785c4bb92c9 (diff)
downloadstable-diffusion-webui-gfx803-cfc9849f3f64977936769b6479d6b2231ecbfc5b.tar.gz
stable-diffusion-webui-gfx803-cfc9849f3f64977936769b6479d6b2231ecbfc5b.tar.bz2
stable-diffusion-webui-gfx803-cfc9849f3f64977936769b6479d6b2231ecbfc5b.zip
Merge branch 'master' into 6866-fix-hires-prompt-matrix
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: