diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-02-05 14:02:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 14:02:30 +0000 |
commit | 47b298d58af290c5c6be6d0716e0216d6e4649d1 (patch) | |
tree | c7d059a650ea1d424d0224eac089e1396bdb7b50 /modules/modelloader.py | |
parent | dd20fc0fda5ac7cbb93af0b93222ee5a17f7705e (diff) | |
parent | ea9bd9fc7409109adcd61b897abc2c8881161256 (diff) | |
download | stable-diffusion-webui-gfx803-47b298d58af290c5c6be6d0716e0216d6e4649d1.tar.gz stable-diffusion-webui-gfx803-47b298d58af290c5c6be6d0716e0216d6e4649d1.tar.bz2 stable-diffusion-webui-gfx803-47b298d58af290c5c6be6d0716e0216d6e4649d1.zip |
Merge branch 'AUTOMATIC1111:master' into master
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: |