Skip to content

Commit

Permalink
fixup! remote/client: replace manual place checks with helper method …
Browse files Browse the repository at this point in the history
…calls
  • Loading branch information
jluebbe committed Jul 26, 2024
1 parent e66a172 commit 977650e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion labgrid/remote/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,9 @@ async def acquire(self):

async def release(self):
"""Release a previously acquired place"""
place = self.get_acquired_place()
place = self.get_place()
if not place.acquired:
raise UserError(f"place {place.name} is not acquired")
user = self.getuser()
_, user = place.acquired.split("/")
if user != self.getuser():
Expand Down

0 comments on commit 977650e

Please sign in to comment.