We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf2c129 commit 9e3966cCopy full SHA for 9e3966c
1 file changed
lightllm/utils/multimodal_utils.py
@@ -56,12 +56,8 @@ async def _run_and_cache() -> bytes:
56
task = asyncio.create_task(_run_and_cache())
57
58
def _consume_task_exception(completed_task: asyncio.Task) -> None:
59
- if completed_task.cancelled():
60
- return
61
- try:
+ if not completed_task.cancelled():
62
completed_task.exception()
63
- except BaseException:
64
65
66
task.add_done_callback(_consume_task_exception)
67
self._inflight[key] = task
0 commit comments