mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 19:21:21 +00:00
Merge pull request #60 from hentailord85ez/file-not-found-fix
Don't iterate over scripts if it doesn't exist
This commit is contained in:
@@ -29,6 +29,9 @@ scripts = []
|
|||||||
|
|
||||||
|
|
||||||
def load_scripts(basedir):
|
def load_scripts(basedir):
|
||||||
|
if not os.path.exists(basedir):
|
||||||
|
return
|
||||||
|
|
||||||
for filename in os.listdir(basedir):
|
for filename in os.listdir(basedir):
|
||||||
path = os.path.join(basedir, filename)
|
path = os.path.join(basedir, filename)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user