aboutsummaryrefslogtreecommitdiff
path: root/modules/modelloader.py
diff options
context:
space:
mode:
authorInvincibleDude <81354513+InvincibleDude@users.noreply.github.com>2023-02-05 18:02:44 +0300
committerGitHub <noreply@github.com>2023-02-05 18:02:44 +0300
commitf4b78e73a424299a496801930e6d8868d8d03e61 (patch)
tree48884e8a2ba070d8640f79c1676ffff3e35f37e7 /modules/modelloader.py
parent3ec2eb8bf12ae629c292ed0e96f199669040c5de (diff)
parentea9bd9fc7409109adcd61b897abc2c8881161256 (diff)
Merge branch 'AUTOMATIC1111:master' into improved-hr-conflict-test
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: