mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
fix for extensions without style.css
This commit is contained in:
parent
50b5504401
commit
1cd3ed7def
@ -1639,6 +1639,9 @@ Requested path was: {f}
|
||||
css = ""
|
||||
|
||||
for cssfile in modules.scripts.list_files_with_name("style.css"):
|
||||
if not os.path.isfile(cssfile):
|
||||
continue
|
||||
|
||||
with open(cssfile, "r", encoding="utf8") as file:
|
||||
css += file.read() + "\n"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user