From 228777963f01d8a6febfd66b9cd48885bdd8668d Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 19 Oct 2016 20:02:28 -0700 Subject: [PATCH] Script logger error message for unspecified folder --- plexpy/notifiers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index b750d708..9b6fb10d 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -2216,6 +2216,10 @@ class SCRIPTS(Notifier): body(string, optional): Body text, action(string): 'play' """ + if not self.config['script_folder']: + logger.error(u"PlexPy Notifiers :: No script folder specified.") + return + script_args = subject or None action = kwargs.get('action', '') @@ -2225,9 +2229,6 @@ class SCRIPTS(Notifier): if not script_args: script_args = [] - if not self.config['script_folder']: - return - script = self.config.get('script', kwargs.get('script', '')) # Don't try to run the script if the action does not have one