mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Handle unicode script arguments
This commit is contained in:
parent
b248dbacf2
commit
a3ead41990
2 changed files with 3 additions and 3 deletions
|
@ -1028,7 +1028,7 @@ def build_notify_text(subject='', body='', notify_action=None, parameters=None,
|
|||
|
||||
if agent_id == 15:
|
||||
try:
|
||||
script_args = [custom_formatter.format(unicode(arg), **parameters) for arg in shlex.split(subject)]
|
||||
script_args = [custom_formatter.format(arg.decode('utf-8'), **parameters) for arg in shlex.split(subject.encode('utf-8'))]
|
||||
except LookupError as e:
|
||||
logger.error(u"Tautulli NotificationHandler :: Unable to parse parameter %s in script argument. Using fallback." % e)
|
||||
script_args = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue