From 36a99f70a3014eb235c05ee226074d3200e12961 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 18 Jan 2016 18:30:22 -0800 Subject: [PATCH] Fix error when script directory doesn't exist --- plexpy/notifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index bee1daab..0f6a233d 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1786,7 +1786,7 @@ class Scripts(object): scripts = {'': ''} if scriptdir and not os.path.exists(scriptdir): - os.makedirs(scriptdir) + return scripts for root, dirs, files in os.walk(scriptdir): for f in files: