Script logger error message for unspecified folder
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user