fix: remove asyncio.TimeoutError since Python update

Since we now support Pythong starting from 3.11, this is not needed
anymore.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-06-19 15:02:27 +02:00
parent 6039d922c0
commit c5c400b9f0
No known key found for this signature in database

View file

@ -289,7 +289,7 @@ class VectorIORouter(VectorIO):
continue
health = await asyncio.wait_for(impl.health(), timeout=timeout)
health_statuses[provider_id] = health
except (asyncio.TimeoutError, TimeoutError):
except TimeoutError:
health_statuses[provider_id] = HealthResponse(
status=HealthStatus.ERROR,
message=f"Health check timed out after {timeout} seconds",