use buildinfo copy

This commit is contained in:
Tomas Kopecek 2020-03-23 14:57:23 +01:00
parent d1e055f1b2
commit 52236bab4b

View file

@ -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