From 37fa51a3d808f6c2e7cd8363b02ccf4dabe233dc Mon Sep 17 00:00:00 2001 From: InspurSDN Date: Thu, 4 Jul 2024 14:14:32 +0800 Subject: [PATCH] Fix some pylint issues --- src/swsssdk/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swsssdk/interface.py b/src/swsssdk/interface.py index d8831800..378e4ad8 100644 --- a/src/swsssdk/interface.py +++ b/src/swsssdk/interface.py @@ -355,7 +355,7 @@ def _unavailable_data_handler(self, db_name, data): while time.time() - start < self.PUB_SUB_MAXIMUM_DATA_WAIT: msg = self.keyspace_notification_channels[db_name].get_message(timeout=self.PUB_SUB_NOTIFICATION_TIMEOUT) if msg is not None and msg.get('data') == data: - logger.info("'{}' acquired via pub-sub. Unblocking...".format(data, db_name)) + logger.info("'{}' acquired via pub-sub. Unblocking...".format(data)) # Wait for a "settling" period before releasing the wait. time.sleep(self.DATA_RETRIEVAL_WAIT_TIME) return True