Skip to content

Commit

Permalink
Merge pull request #1034 from tue-robotics/locking_des_return_none
Browse files Browse the repository at this point in the history
(designators) explicit return None in locking designator
  • Loading branch information
MatthijsBurgh committed May 15, 2020
2 parents 35e25b3 + dfbff8d commit 241735e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ def _resolve(self):
if entity: # If we can find what to remember
self._locked_to_id = entity.id # remember its ID.
return entity
else:
return None
else: # If we do remember something already, recall that remembered ID:
return self.robot.ed.get_entity(id=self._locked_to_id)
else:
Expand Down

0 comments on commit 241735e

Please sign in to comment.