Commit e149e68
fix AttributeError when result.info is not a dict
result.info returns the task's return value (e.g. an int) when the
Celery task completes before apply_async checks it. Use isinstance
check instead of truthiness to avoid calling .get() on non-dict values.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d772d01 commit e149e68
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments