From 26404eaabf4fa66a4134cdaae9746329f42c7029 Mon Sep 17 00:00:00 2001 From: hentailord85ez <112723046+hentailord85ez@users.noreply.github.com> Date: Sat, 3 Sep 2022 17:09:14 +0100 Subject: [PATCH] Don't iterate over scripts if it doesn't exist --- modules/scripts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/scripts.py b/modules/scripts.py index be348a70..37a23682 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)