diff --git a/aiohttp/client_exceptions.py b/aiohttp/client_exceptions.py index 6fcfa51f92e..bd742ad19b5 100644 --- a/aiohttp/client_exceptions.py +++ b/aiohttp/client_exceptions.py @@ -272,7 +272,9 @@ def __repr__(self) -> str: return f"<{self.__class__.__name__} {self}>" def __str__(self) -> str: - return " - ".join(map(str, self.args)) + if self._description: + return f"{self._url} - {self._description}" + return self._url class InvalidRedirectURL(InvalidURL):