Commit 226de5e5 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #60 from hentailord85ez/file-not-found-fix

Don't iterate over scripts if it doesn't exist
parents 5c186d51 26404eaa
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment