Skip to content

Commit f1fb325

Browse files
GitHKCopilot
andauthored
Update packages/service-library/src/servicelib/long_running_tasks/_task.py
Co-authored-by: Copilot <[email protected]>
1 parent 9d301f8 commit f1fb325

File tree

1 file changed

+1
-1
lines changed
  • packages/service-library/src/servicelib/long_running_tasks

1 file changed

+1
-1
lines changed

packages/service-library/src/servicelib/long_running_tasks/_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ async def _cancel_asyncio_task(
262262
await asyncio.wait_for(
263263
_await_task(task), timeout=self._cancel_task_timeout_s
264264
)
265-
except TimeoutError:
265+
except asyncio.TimeoutError:
266266
logger.warning(
267267
"Timed out while awaiting for cancellation of '%s'", reference
268268
)

0 commit comments

Comments
 (0)