[FIX] runbot: properly join log args

When a type error occurs when trying to format a message in a build log,
the suspicious are are joined with the message. But as the args may be a
tuple, an errors occurs when concatenating the message with the args
during the join.

With this commit, we ensure that the args are casted into a list.
This commit is contained in:
Christophe Monniez 2024-11-08 17:23:47 +01:00 committed by xdo
parent 63dac316ab
commit ecd9681b65

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] + args)
message = ' ' .join([message] + list(args))
message = truncate(message)