diff --git a/modules/scripts.py b/modules/scripts.py index be348a704..37a236827 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -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)