fix for extensions without style.css

This commit is contained in:
AUTOMATIC 2022-10-22 14:28:56 +03:00
parent 50b5504401
commit 1cd3ed7def

View File

@ -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"