From 21ed06dbc0ad8b28168cc8c5a3523e1b8ff0da3c Mon Sep 17 00:00:00 2001 From: multiflexi Date: Fri, 29 Sep 2023 14:57:29 +0200 Subject: [PATCH] fix issue when message title or body are missing --- src/core/managers/publishers_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/managers/publishers_manager.py b/src/core/managers/publishers_manager.py index 374b9c188..5b08b66bd 100644 --- a/src/core/managers/publishers_manager.py +++ b/src/core/managers/publishers_manager.py @@ -77,8 +77,8 @@ def publish(preset, data, message_title, message_body, recipients): if data is not None: data_data = data["data"] data_mime = data["mime_type"] - message_title = data["message_title"] - message_body = data["message_body"] + message_title = data.get("message_title", None) + message_body = data.get("message_body", None) input_data = PublisherInput(publisher.type, preset.parameter_values, data_mime, data_data, message_title, message_body, recipients) input_schema = PublisherInputSchema()