From f6a1f1af5b776f02efca65b986e6b19e34404d54 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 2 Sep 2024 09:01:42 -0700 Subject: [PATCH] add load_test to excluded --- app/main/views/send.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index 14272d697..3288eddc7 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -944,8 +944,10 @@ def preview_notification(service_id, template_id): def send_notification(service_id, template_id): upload_id = _send_notification(service_id, template_id) - session.pop("recipient") - session.pop("placeholders") + if session.get("recipient"): + session.pop("recipient") + if session.get("placeholders"): + session.pop("placeholders") # We have to wait for the job to run and create the notification in the database time.sleep(0.1)