Skip to content

Commit

Permalink
ease debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Prime541 committed Oct 30, 2024
1 parent 3f10250 commit c646e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiven/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Error(Exception):
"""Request error"""

def __init__(self, response: Response, status: int = 520) -> None:
Exception.__init__(self, response.text)
Exception.__init__(self, f"{response.text}, status({type(status)})={str(status)}")
self.response = response
self.status = status

Expand Down

0 comments on commit c646e54

Please sign in to comment.