make sure agent has stored_data attribute
@@ -93,7 +93,7 @@ class MessengerAgent(Agent):
def set_stored_data(self):
"""Gets agent state data from manager"""
agent_state = self.manager.get_agent_state(self.id)
- if agent_state is not None:
+ if agent_state is not None and hasattr(agent_state, 'stored_data'):
self.stored_data = agent_state.stored_data
def get_new_act_message(self):
