mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Fix fallback body text
This commit is contained in:
parent
5d58d9f5d4
commit
c3b5621dda
1 changed files with 2 additions and 2 deletions
|
@ -627,10 +627,10 @@ def build_notify_text(subject='', body='', notify_action=None, parameters=None,
|
|||
body = unicode(body).format(**parameters)
|
||||
except LookupError as e:
|
||||
logger.error(u"PlexPy NotificationHandler :: Unable to parse field %s in notification body. Using fallback." % e)
|
||||
subject = unicode(default_body).format(**parameters)
|
||||
body = unicode(default_body).format(**parameters)
|
||||
except:
|
||||
logger.error(u"PlexPy NotificationHandler :: Unable to parse custom notification body. Using fallback.")
|
||||
subject = unicode(default_body).format(**parameters)
|
||||
body = unicode(default_body).format(**parameters)
|
||||
|
||||
return subject, body
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue