mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-15 07:20:31 +08: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 = ""
|
css = ""
|
||||||
|
|
||||||
for cssfile in modules.scripts.list_files_with_name("style.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:
|
with open(cssfile, "r", encoding="utf8") as file:
|
||||||
css += file.read() + "\n"
|
css += file.read() + "\n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user