aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Bonnici <marc.bonnici@arm.com>2018-10-09 14:20:10 +0100
committersetrofim <setrofim@gmail.com>2018-10-09 15:26:53 +0100
commit375a36c155a465d32b6e3fb5ab4eca6173738d3b (patch)
tree19a5ff61ddd72f373149934efabf05981a7d84c2
parent7c3054b54b257659a179af772e995e1a0f5d1681 (diff)
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.
-rw-r--r--wa/utils/log.py2
1 files changed, 1 insertions, 1 deletions
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):