From 82deb9633da3cffc10bc3a0580e86932d2b7135a Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Mon, 9 Jun 2025 13:06:01 -0400 Subject: [PATCH] Made conditional more specific to pass scan --- app/notifications/rest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/notifications/rest.py b/app/notifications/rest.py index 1deac8474..f5984ea81 100644 --- a/app/notifications/rest.py +++ b/app/notifications/rest.py @@ -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: