diff --git a/testsuite/httpx/__init__.py b/testsuite/httpx/__init__.py index 58adc191..44e6353b 100644 --- a/testsuite/httpx/__init__.py +++ b/testsuite/httpx/__init__.py @@ -5,7 +5,7 @@ from typing import Union import backoff -from httpx import Client, ConnectError +from httpx import Client, RequestError from testsuite.certificates import Certificate @@ -127,7 +127,7 @@ def request( extensions=extensions, ) return Result(self.retry_codes, response=response) - except ConnectError as e: + except RequestError as e: return Result(self.retry_codes, error=e) def get(self, *args, **kwargs) -> Result: