Fix fallback body text

This commit is contained in:
JonnyWong16 2016-10-16 10:08:36 -07:00 committed by JonnyWong16
parent 5d58d9f5d4
commit c3b5621dda

View file

@ -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