[FIX] runbot: fix log args

Previous fix was not enough when one of the args is not a string.

Courtesy of xmo
This commit is contained in:
Christophe Monniez 2024-11-14 15:34:27 +01:00
parent 9151c26232
commit 83806766b5

View File

@ -996,7 +996,7 @@ class BuildResult(models.Model):
message = message % args
except TypeError:
_logger.exception(f'Error while formating `{message}` with `{args}`')
message = ' ' .join([message] + list(args))
message = ' ' .join([message, *map(str, args)])
message = truncate(message)