Skip to content

Commit

Permalink
fix(cluster): handle errors w/ openapi fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Aug 2, 2024
1 parent 5f1bad8 commit c3f62f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion silverback/cluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ def send(self, request, *args, **kwargs):
@property
@cache
def openapi_schema(self) -> dict:
return self.get("/openapi.json").json()
response = self.get("/openapi.json")
handle_error_with_response(response)
return response.json()

@property
def version(self) -> str:
Expand Down

0 comments on commit c3f62f9

Please sign in to comment.