Skip to content

Commit a04d4d1

Browse files
driver/power/mfi_mpower: fix ExecutionError message
The message should have been an f-string to contain useful information. Fixes: 6980c6f ("labgrid/driver/power: Backend for Ubiquity mFi mPower") Signed-off-by: Bastian Krause <bst@pengutronix.de> (cherry picked from commit 005b2b2)
1 parent 909a50d commit a04d4d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

labgrid/driver/power/mfi_mpower.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def power_get(host, port, index):
9191
elif port['output'] == 1:
9292
return True
9393
else:
94-
raise ExecutionError("unexpected port output value: '{port['output']}'")
94+
raise ExecutionError(f"unexpected port output value: '{port['output']}'")
9595
else:
9696
raise ExecutionError(f"unexpected http response: code {r.status_code}, content type '{r.headers['Content-Type']}' and content: '{r.text}'")
9797

0 commit comments

Comments
 (0)