Skip to content

Commit

Permalink
feat: add __repr__ implementation for RequestError
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Oct 23, 2024
1 parent fc9b0c0 commit 5dbb2c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python_weather/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ def __init__(self, source: Exception):
self.source = source

super().__init__()

def __repr__(self) -> str:
return f'<{__class__.__name__} source={self.source!r}>'

0 comments on commit 5dbb2c5

Please sign in to comment.