Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
475095f5
Unverified
Commit
475095f5
authored
Feb 05, 2023
by
AUTOMATIC1111
Committed by
GitHub
Feb 05, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7528 from spezialspezial/patch-1
Catch broken model symlinks early | Quickfix modelloader.py
parents
668d7e9b
65244788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modelloader.py
modules/modelloader.py
+3
-0
No files found.
modules/modelloader.py
View file @
475095f5
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment