From 977650e99c5fd487c698cea57b206503c47c9a0a Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Fri, 26 Jul 2024 09:39:43 +0200 Subject: [PATCH] fixup! remote/client: replace manual place checks with helper method calls --- labgrid/remote/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/labgrid/remote/client.py b/labgrid/remote/client.py index e00eb94ad..f4ec632d7 100755 --- a/labgrid/remote/client.py +++ b/labgrid/remote/client.py @@ -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():