fix: remove asyncio.TimeoutError since Python update (#2476)

# What does this PR do?

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:22:41 +02:00 committed by GitHub
parent 6039d922c0
commit fa1d986f72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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