Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
congwang09 committed Jun 12, 2024
1 parent 40c87fc commit 5791750
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdx_lc/messaging/topic_queue_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ def handle_mq_msg(self, msg_body):
if is_json(msg_body):
self.logger.info("JSON message")
msg_json = json.loads(msg_body)
if "operation" in msg_json and "uni_a" in msg_json["link"] and "uni_z" in msg_json["link"]:
if (
"link" in msg_json
and "uni_a" in msg_json["link"]
and "uni_z" in msg_json["link"]
):
connection = msg_json["link"]
self.logger.info("Got connection message.")
self.db_instance.add_key_value_pair_to_db(self.message_id, connection)
Expand Down

0 comments on commit 5791750

Please sign in to comment.