wcs-olap: skip delay computation when status resolving fails

This commit is contained in:
Benjamin Dauvergne 2016-05-19 14:40:21 +02:00
parent 0e2968f36f
commit ca9d23821c
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ class FormData(BaseObject):
s = 0
for evo in self.evolution[::-1]:
if evo.status:
if statuses_map[evo.status].endpoint:
try:
status = statuses_map[evo.status]
except KeyError: # happen when workflow has changed
return
if status.endpoint:
s = 1
last = evo.time - self.receipt_time
else: