fix: messages are None when no message is received
ref: N25B-265
This commit is contained in:
@@ -17,7 +17,9 @@ class BeliefSetterBehaviour(CyclicBehaviour):
|
||||
|
||||
async def run(self):
|
||||
"""Polls for messages and processes them."""
|
||||
msg = await self.receive()
|
||||
msg = await self.receive(timeout=1)
|
||||
if not msg:
|
||||
return
|
||||
self.agent.logger.debug(
|
||||
"Received message from %s with thread '%s' and body: %s",
|
||||
msg.sender,
|
||||
|
||||
Reference in New Issue
Block a user