mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 07:12: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 {}
|
||||
)
|
||||
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:
|
||||
notification.subject = template.subject
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user