From 5926dd9ee6544fda5683750dd66690e5e2b51f94 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 1 May 2020 15:02:08 +0200 Subject: [PATCH] Ensure the code is still compatible with py2 where it currently runs Signed-off-by: Pierre-Yves Chibon --- mirror_from_pagure_bus.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mirror_from_pagure_bus.py b/mirror_from_pagure_bus.py index b728101..f8022bc 100644 --- a/mirror_from_pagure_bus.py +++ b/mirror_from_pagure_bus.py @@ -32,8 +32,10 @@ def run_command(command, cwd=None): output = subprocess.check_output(command, cwd=cwd, stderr=subprocess.PIPE) except subprocess.CalledProcessError as e: _log.error("Command `%s` return code: `%s`", " ".join(command), e.returncode) - _log.error("stdout:\n-------\n%s", e.stdout) - _log.error("stderr:\n-------\n%s", e.stderr) + _log.error("Output:\n------\n%s", e.output) + # To enable when we move to python3 + # _log.error("stdout:\n-------\n%s", e.stdout) + # _log.error("stderr:\n-------\n%s", e.stderr) raise return output