From c3b5621ddabe0dc1849a45eb5e6586b066fa3766 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 16 Oct 2016 10:08:36 -0700 Subject: [PATCH] Fix fallback body text --- plexpy/notification_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 2fd82323..bc2d5ec1 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -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