Skip to content

Commit

Permalink
add forgotten message building in RequestError
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Zulkower committed Nov 18, 2024
1 parent 9066dfb commit c282626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ginkgo_ai_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def __init__(
self.cause = cause
self.query = query
self.result_url = result_url
message = self._format_error_message()
super().__init__(message)

def _format_error_message(self):
cause_str = f"{self.cause.__class__.__name__}: {self.cause}"
Expand Down

0 comments on commit c282626

Please sign in to comment.