From e21155fdecbfbb46f67b36bde37c0dbc5e9038ad Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 18 Jul 2023 11:26:46 +0200 Subject: [PATCH] Add f-string --- src/main/python/ddadevops/infrastructure/infrastructure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index e79129d..fa47751 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -93,11 +93,11 @@ class ExecutionApi: shell=shell, check=check, stdout=PIPE, - stderr=STDOUT, + stderr=PIPE, text=True).stdout output = output.rstrip() 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 return output