diff --git a/app/api/workers.py b/app/api/workers.py index 60094475..308c30d0 100644 --- a/app/api/workers.py +++ b/app/api/workers.py @@ -20,7 +20,7 @@ class CheckTask(APIView): out = {'ready': False} # Copy progress meta - if res.state == "PROGRESS": + if res.state == "PROGRESS" and res.info is not None: for k in res.info: out[k] = res.info[k]