mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-15 15:13:45 +03:00
do not die on failing to load script #426
This commit is contained in:
parent
f6aa0cdb0b
commit
c253d6bdab
@ -42,10 +42,10 @@ def load_scripts(basedir):
|
||||
if not os.path.isfile(path):
|
||||
continue
|
||||
|
||||
try:
|
||||
with open(path, "r", encoding="utf8") as file:
|
||||
text = file.read()
|
||||
|
||||
try:
|
||||
from types import ModuleType
|
||||
compiled = compile(text, path, 'exec')
|
||||
module = ModuleType(filename)
|
||||
|
Loading…
Reference in New Issue
Block a user