En raison du déménagement des baies serveurs, les services gitlab.irstea.fr et mattermost.irstea.fr seront interrompus le samedi 2 octobre 2021 au matin. Ils devraient revenir à la normale dans la journée.

Unverified Commit 9bdf117b authored by Julien Veyssier's avatar Julien Veyssier
Browse files

attempt to fix problem if stats are empty in formatNm


Signed-off-by: default avatarJulien Veyssier <eneiluj@posteo.net>
parent a269c7dc
......@@ -14,8 +14,9 @@ def formatNm(bas, topoToHruTmpPath, topoBflTmpPath, stats):
# group stats by second column value
for stat in stats:
statSpl = stat.strip().split()
second = statSpl[2]
statDict[second].append(statSpl)
if len(statSpl) > 2:
second = statSpl[2]
statDict[second].append(statSpl)
# one value = one result line with accumulated values
for sec in statDict:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment