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:
AUTOMATIC1111 2022-09-03 19:35:28 +03:00 committed by GitHub
commit 226de5e503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,9 @@ scripts = []
def load_scripts(basedir):
if not os.path.exists(basedir):
return
for filename in os.listdir(basedir):
path = os.path.join(basedir, filename)