Skip to content

Commit 909a50d

Browse files
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 <bst@pengutronix.de> (cherry picked from commit 6560c35)
1 parent 45184c7 commit 909a50d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)