Skip to content

Commit 6560c35

Browse files
Bastian-KrauseEmantor
authored andcommitted
remote/coordinator: fix ExporterError message
The message should have been an f-string to contain any useful information. Fixes: 8cb8ecd ("remote/coordinator: show error reason for failed exporter commands") Signed-off-by: Bastian Krause <[email protected]>
1 parent d7903e2 commit 6560c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgrid/remote/coordinator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ async def _acquire_resource(self, place, resource):
626626
self.get_exporter_by_name(resource.path[0]).queue.put_nowait(cmd)
627627
await cmd.wait()
628628
if not cmd.response.success:
629-
raise ExporterError("failed to acquire {resource} ({cmd.response.reason})")
629+
raise ExporterError(f"failed to acquire {resource} ({cmd.response.reason})")
630630
if resource.acquired != place.name:
631631
logging.warning("resource %s not acquired by this place after acquire request", resource)
632632

0 commit comments

Comments
 (0)