fix: some bugs and some tests
ref: N25B-429
This commit is contained in:
@@ -248,7 +248,7 @@ class RICommunicationAgent(BaseAgent):
|
||||
self._req_socket.recv_json(), timeout=seconds_to_wait_total / 2
|
||||
)
|
||||
|
||||
if message["endpoint"] and message["endpoint"] != "ping":
|
||||
if "endpoint" in message and message["endpoint"] != "ping":
|
||||
self.logger.debug(f'Received message "{message}" from RI.')
|
||||
if "endpoint" not in message:
|
||||
self.logger.warning("No received endpoint in message, expected ping endpoint.")
|
||||
|
||||
Reference in New Issue
Block a user