From 4c8846df5249f34a6807d989450c99ff3dca2f63 Mon Sep 17 00:00:00 2001 From: Cong Wang Date: Wed, 12 Jun 2024 12:55:44 -0400 Subject: [PATCH] Update sdx_lc/messaging/topic_queue_consumer.py Co-authored-by: Sajith Sasidharan --- sdx_lc/messaging/topic_queue_consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdx_lc/messaging/topic_queue_consumer.py b/sdx_lc/messaging/topic_queue_consumer.py index 89d0b89..6a3ed0f 100644 --- a/sdx_lc/messaging/topic_queue_consumer.py +++ b/sdx_lc/messaging/topic_queue_consumer.py @@ -106,7 +106,7 @@ def handle_mq_msg(self, msg_body): self.message_id += 1 self.logger.info("Sending connection info to OXP.") # send connection info to OXP - if msg_json["operation"] == "post": + if msg_json.get("operation") == "post": try: r = requests.post(str(OXP_CONNECTION_URL), json=connection) self.logger.info(f"Status from OXP: {r}")