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

master
hentailord85ez 3 years ago committed by GitHub
parent 595c827bd3
commit 26404eaabf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save