mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[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:
parent
63dac316ab
commit
ecd9681b65
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user