diff --git a/src/agent/base.py b/src/agent/base.py index 56b522a..cb6a535 100644 --- a/src/agent/base.py +++ b/src/agent/base.py @@ -864,7 +864,7 @@ async def _act( self._log("Act", "Starting to act on plan.") # If we are not in the right location, move to the new location - if (plan.location and self.location.id != plan.location.id): + if (hasattr(plan, 'location') and plan.location and self.location.id != plan.location.id): await self._move_to_location(plan.location) # Observe and react to new events