diff options
author | InvincibleDude <81354513+InvincibleDude@users.noreply.github.com> | 2023-02-05 15:02:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 15:02:44 +0000 |
commit | f4b78e73a424299a496801930e6d8868d8d03e61 (patch) | |
tree | 48884e8a2ba070d8640f79c1676ffff3e35f37e7 /modules/modelloader.py | |
parent | 3ec2eb8bf12ae629c292ed0e96f199669040c5de (diff) | |
parent | ea9bd9fc7409109adcd61b897abc2c8881161256 (diff) | |
download | stable-diffusion-webui-gfx803-f4b78e73a424299a496801930e6d8868d8d03e61.tar.gz stable-diffusion-webui-gfx803-f4b78e73a424299a496801930e6d8868d8d03e61.tar.bz2 stable-diffusion-webui-gfx803-f4b78e73a424299a496801930e6d8868d8d03e61.zip |
Merge branch 'AUTOMATIC1111:master' into improved-hr-conflict-test
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: |