[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 committed by xdo
parent ec440e61f7
commit 22151d3566

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)