From 375a36c155a465d32b6e3fb5ab4eca6173738d3b Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 9 Oct 2018 14:20:10 +0100 Subject: [PATCH] utils/log: Ensure to convert all arguments to strings Ensure that all arguments provided for an Exception are converted to stings before attempting to join them for debug information. --- wa/utils/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wa/utils/log.py b/wa/utils/log.py index 5b4e18e0..e16afd84 100644 --- a/wa/utils/log.py +++ b/wa/utils/log.py @@ -200,7 +200,7 @@ def log_error(e, logger, critical=False): log_func(tb) command = e.cmd if e.args: - command = '{} {}'.format(command, ' '.join(e.args)) + command = '{} {}'.format(command, ' '.join(map(str, e.args))) message = 'Command \'{}\' returned non-zero exit status {}\nOUTPUT:\n{}\n' log_func(message.format(command, e.returncode, e.output)) elif isinstance(e, SyntaxError):