Skip to content

Commit

Permalink
Make context reference safe
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Aug 11, 2023
1 parent 75d6384 commit 3594f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neon_mq_connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def emit_mq_message(cls,
raise ValueError(f'No request data provided')

# Ensure `message_id` in data will match context in messagebus connector
request_data.setdefault('message_id', request_data["context"]
request_data.setdefault('message_id', request_data.get("context", {})
.get("mq", {}).get("message_id") or
cls.create_unique_id())

Expand Down

0 comments on commit 3594f47

Please sign in to comment.