Skip to content

Commit 9e3966c

Browse files
committed
fix
1 parent cf2c129 commit 9e3966c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lightllm/utils/multimodal_utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,8 @@ async def _run_and_cache() -> bytes:
5656
task = asyncio.create_task(_run_and_cache())
5757

5858
def _consume_task_exception(completed_task: asyncio.Task) -> None:
59-
if completed_task.cancelled():
60-
return
61-
try:
59+
if not completed_task.cancelled():
6260
completed_task.exception()
63-
except BaseException:
64-
return
6561

6662
task.add_done_callback(_consume_task_exception)
6763
self._inflight[key] = task

0 commit comments

Comments
 (0)