Script logger error message for unspecified folder

This commit is contained in:
JonnyWong16 2016-10-19 20:02:28 -07:00 committed by JonnyWong16
parent 08a9b59ca4
commit 228777963f

View file

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