From 1ade2f477635ed17b1e3e0d4ff861ef3fa7caded Mon Sep 17 00:00:00 2001 From: Nick Terner Date: Wed, 19 Aug 2020 23:28:05 +0300 Subject: [PATCH] make log_collector - esp. on windows - more tolerant of errors --- log_collector/log_collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log_collector/log_collector.py b/log_collector/log_collector.py index f210549..eec8f2e 100755 --- a/log_collector/log_collector.py +++ b/log_collector/log_collector.py @@ -456,7 +456,7 @@ def run_shell_command_regular(args): except subprocess.CalledProcessError as ex: logger.warning("Failed in shell command: %s, output: %s", args, ex.output) - return ex.returncode, ex.output + return ex.returncode, native_string(ex.output) return 0, native_string(output)