use buildinfo copy
This commit is contained in:
parent
d1e055f1b2
commit
52236bab4b
1 changed files with 1 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ def _strip_extra(buildinfo):
|
|||
extra_limit = CONFIG.getint('message', 'extra_limit')
|
||||
extra_size = len(json_serialize(buildinfo.get('extra', {})))
|
||||
if extra_limit and extra_size > extra_limit:
|
||||
buildinfo = buildinfo.copy()
|
||||
del buildinfo['extra']
|
||||
return buildinfo
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue