From 320bbafb0beeaa0b4c1324766ba72185dfcc22fa Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 24 Jan 2025 16:05:57 -0500 Subject: [PATCH] Add none check --- app/api/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]