Skip to content

Commit

Permalink
Merge pull request #19 from synnax-ai/fix-bool-op
Browse files Browse the repository at this point in the history
Fix status code boolean operator
  • Loading branch information
cheziyi authored Sep 17, 2024
2 parents c54e174 + 87a7b35 commit c5fa624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synnax_lab_sdk/http_client/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def post(self, endpoint: str, body: Dict, headers: Dict = {}) -> Dict:
)
json_obj = response.json()

if response.status_code < 200 | response.status_code >= 300:
if response.status_code < 200 or response.status_code >= 300:
raise HttpError(json_obj["message"], response.status_code)

return json_obj

0 comments on commit c5fa624

Please sign in to comment.