Skip to content

Commit

Permalink
Merge pull request #168 from multiflexi/e-mail_publisher
Browse files Browse the repository at this point in the history
fix issue when message title or body are missing
  • Loading branch information
milankowww authored Sep 29, 2023
2 parents 762714b + 21ed06d commit 2eac5b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/managers/publishers_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2eac5b6

Please sign in to comment.