From 8f22b118bee6d0c55c740b497deb2ed3eee52999 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 22 Oct 2016 16:57:26 -0700 Subject: [PATCH] Use default subject and body if blank --- plexpy/notification_handler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 8d54a835..687dd92a 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -614,6 +614,10 @@ def build_notify_text(subject='', body='', notify_action=None, parameters=None, default_subject = default_action.get('subject', '') default_body = default_action.get('body', '') + # Use default subject and body if they are blank + subject = subject or default_subject + body = body or default_body + try: subject = unicode(subject).format(**parameters) except LookupError as e: