mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -05:00
Made conditional more specific to pass scan
This commit is contained in:
@@ -60,7 +60,8 @@ def get_notification_by_id(notification_id):
|
|||||||
template_dict, notification.personalisation or {}
|
template_dict, notification.personalisation or {}
|
||||||
)
|
)
|
||||||
notification.body = template.content_with_placeholders_filled_in
|
notification.body = template.content_with_placeholders_filled_in
|
||||||
if hasattr(template, "subject"):
|
if hasattr(template, "subject") and hasattr(notification, "subject"):
|
||||||
|
notification.subject = template.subject
|
||||||
try:
|
try:
|
||||||
notification.subject = template.subject
|
notification.subject = template.subject
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user