fix: messages are None when no message is received
ref: N25B-265
This commit is contained in:
@@ -30,7 +30,9 @@ class LLMAgent(BaseAgent):
|
||||
Receives SPADE messages and processes only those originating from the
|
||||
configured BDI agent.
|
||||
"""
|
||||
msg = await self.receive()
|
||||
msg = await self.receive(timeout=1)
|
||||
if not msg:
|
||||
return
|
||||
|
||||
sender = msg.sender.node
|
||||
self.agent.logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user