Skip to content

Commit

Permalink
Update sdx_lc/messaging/topic_queue_consumer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sajith Sasidharan <[email protected]>
  • Loading branch information
congwang09 and sajith authored Jun 12, 2024
1 parent 5791750 commit 4c8846d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdx_lc/messaging/topic_queue_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 4c8846d

Please sign in to comment.