AsyncMixin: Fix occasional crash (PRETIXEU-49P)

This commit is contained in:
Raphael Michel
2021-06-11 18:09:12 +02:00
parent bb89bf68ef
commit fb2827e9ab

View File

@@ -106,7 +106,7 @@ class AsyncMixin:
elif res.state == 'PROGRESS':
data.update({
'started': True,
'percentage': res.result.get('value', 0)
'percentage': res.result.get('value', 0) if res.result else 0
})
elif res.state == 'STARTED':
data.update({