llama-stack/llama_stack/distribution/server
Ihar Hrachyshka db21eab713
fix: catch TimeoutError in place of asyncio.TimeoutError (#2131)
# What does this PR do?

As per docs [1], since python 3.11 wait_for() raises TimeoutError. Since
we currently support python 3.10+, we have to catch both.

[1]:
https://docs.python.org/3.12/library/asyncio-task.html#asyncio.wait_for

[//]: # (If resolving an issue, uncomment and update the line below)
[//]: # (Closes #[issue-number])

## Test Plan

No explicit testing; just code hardening to reflect docs.

[//]: # (## Documentation)

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-05-12 11:49:59 +02:00
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
auth.py feat: Add Kubernetes authentication (#1778) 2025-04-28 22:24:58 +02:00
auth_providers.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
endpoints.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
server.py fix: catch TimeoutError in place of asyncio.TimeoutError (#2131) 2025-05-12 11:49:59 +02:00