Skip to content

Commit

Permalink
bug fix when no location
Browse files Browse the repository at this point in the history
  • Loading branch information
tim connors committed May 18, 2023
1 parent 3d3ecaf commit 34bdfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34bdfb3

Please sign in to comment.