Skip to content

Commit

Permalink
Use explicite self arguments instead of self.args
Browse files Browse the repository at this point in the history
  • Loading branch information
setla committed Jan 31, 2024
1 parent 9c1c159 commit ebd3c05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aiohttp/client_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ebd3c05

Please sign in to comment.