Add f-string
This commit is contained in:
parent
43988291c6
commit
e21155fdec
1 changed files with 2 additions and 2 deletions
|
@ -93,11 +93,11 @@ class ExecutionApi:
|
||||||
shell=shell,
|
shell=shell,
|
||||||
check=check,
|
check=check,
|
||||||
stdout=PIPE,
|
stdout=PIPE,
|
||||||
stderr=STDOUT,
|
stderr=PIPE,
|
||||||
text=True).stdout
|
text=True).stdout
|
||||||
output = output.rstrip()
|
output = output.rstrip()
|
||||||
except CalledProcessError as exc:
|
except CalledProcessError as exc:
|
||||||
print("Command failed with code: ", exc.returncode, " and message:", exc.stderr)
|
print(f"Command failed with code: {exc.returncode} and message: {exc.stderr}")
|
||||||
raise exc
|
raise exc
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue