We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a71108 commit def4201Copy full SHA for def4201
packages/service-library/src/servicelib/long_running_tasks/task.py
@@ -364,7 +364,10 @@ async def get_task_result(
364
if tracked_task.result_field.error is not None:
365
raise string_to_object(tracked_task.result_field.error)
366
367
- return string_to_object(tracked_task.result_field.result) # type: ignore[arg-type]
+ if tracked_task.result_field.result is None:
368
+ return None
369
+
370
+ return string_to_object(tracked_task.result_field.result)
371
372
async def cancel_task(
373
self, task_id: TaskId, with_task_context: TaskContext
0 commit comments