pmb.helpers.run_core: Remove unnecessary str(...) (MR 2525)

Integers automatically get converted to strings when used in f-strings
like this, so just get rid of this explicit conversion.
This commit is contained in:
Newbyte 2025-01-08 00:08:25 +01:00 committed by Oliver Smith
parent c2787aa76f
commit 5d707e154c
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -313,7 +313,7 @@ def check_return_code(code: int, log_message: str) -> None:
"NOTE: The failed command's output is above the ^^^ line" "NOTE: The failed command's output is above the ^^^ line"
f" in the log file: {log_file}" f" in the log file: {log_file}"
) )
raise RuntimeError(f"Command failed (exit code {str(code)}): " + log_message) raise RuntimeError(f"Command failed (exit code {code}): " + log_message)
def sudo_timer_iterate() -> None: def sudo_timer_iterate() -> None: