Skip to content

Commit 005b2b2

Browse files
Bastian-KrauseEmantor
authored andcommitted
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 <[email protected]>
1 parent 6560c35 commit 005b2b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)