mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Script logger error message for unspecified folder
This commit is contained in:
parent
08a9b59ca4
commit
228777963f
1 changed files with 4 additions and 3 deletions
|
@ -2216,6 +2216,10 @@ class SCRIPTS(Notifier):
|
||||||
body(string, optional): Body text,
|
body(string, optional): Body text,
|
||||||
action(string): 'play'
|
action(string): 'play'
|
||||||
"""
|
"""
|
||||||
|
if not self.config['script_folder']:
|
||||||
|
logger.error(u"PlexPy Notifiers :: No script folder specified.")
|
||||||
|
return
|
||||||
|
|
||||||
script_args = subject or None
|
script_args = subject or None
|
||||||
action = kwargs.get('action', '')
|
action = kwargs.get('action', '')
|
||||||
|
|
||||||
|
@ -2225,9 +2229,6 @@ class SCRIPTS(Notifier):
|
||||||
if not script_args:
|
if not script_args:
|
||||||
script_args = []
|
script_args = []
|
||||||
|
|
||||||
if not self.config['script_folder']:
|
|
||||||
return
|
|
||||||
|
|
||||||
script = self.config.get('script', kwargs.get('script', ''))
|
script = self.config.get('script', kwargs.get('script', ''))
|
||||||
|
|
||||||
# Don't try to run the script if the action does not have one
|
# Don't try to run the script if the action does not have one
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue