Skip to content

Commit 320bbaf

Browse files
committed
Add none check
1 parent c3c2dfb commit 320bbaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get(self, request, celery_task_id=None, **kwargs):
2020
out = {'ready': False}
2121

2222
# Copy progress meta
23-
if res.state == "PROGRESS":
23+
if res.state == "PROGRESS" and res.info is not None:
2424
for k in res.info:
2525
out[k] = res.info[k]
2626

0 commit comments

Comments
 (0)