diff --git a/testsuite/httpx/__init__.py b/testsuite/httpx/__init__.py index 6d8810e1..fda619b1 100644 --- a/testsuite/httpx/__init__.py +++ b/testsuite/httpx/__init__.py @@ -56,7 +56,7 @@ def __getattr__(self, item): """For backwards compatibility""" if self.response is not None: return getattr(self.response, item) - return None + raise self.error def __str__(self): if self.error is None: