refactor: don't use f-string on logging statements
The strings are now be formatted if the logging level is enabled.
This commit is contained in:
parent
c414068c16
commit
861698987c
23 changed files with 94 additions and 84 deletions
|
@ -16,7 +16,7 @@ def run_(*args, **kwargs) -> CompletedProcess:
|
|||
|
||||
except OSError as exception: # executable was not found
|
||||
cmd = args[0]
|
||||
logger.warning(f"Failed to run: {cmd} - {exception}. Is {cmd} installed?")
|
||||
logger.warning("Failed to run: %s - %s. Is %s installed?", cmd, exception, cmd)
|
||||
raise exception
|
||||
|
||||
except CalledProcessError as exception: # returned an error code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue