diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-02-19 09:30:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 09:30:58 +0000 |
commit | cfc9849f3f64977936769b6479d6b2231ecbfc5b (patch) | |
tree | 51b29ea3b255fe43b0fe7560f9f7fdd23a475427 /modules/modelloader.py | |
parent | 5afd9e82c3829348c58803cd85b02c87308fffae (diff) | |
parent | d99bd04b3f8c7753e31aa6dea6109785c4bb92c9 (diff) | |
download | stable-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.py | 3 |
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: |