Commit 26404eaa authored by hentailord85ez's avatar hentailord85ez Committed by GitHub

Don't iterate over scripts if it doesn't exist

parent 595c827b
......@@ -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