Skip to content

Commit

Permalink
Version 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oddaspa committed Mar 21, 2024
1 parent 1af2d4c commit c0becdb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.6.2] - 2024-03-12

### Fixed

- Fixed json decoding bug in JSONRPC client where execution would crash on non 200-range response.

## [0.6.1] - 2024-03-04

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/pyclarify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
)
import pyclarify.query

__version__ = "0.6.1"
__version__ = "0.6.2"
__API_version__ = "1.1"
6 changes: 5 additions & 1 deletion src/pyclarify/jsonrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def make_request(self, payload:dict):
res = requests.post(
self.base_url, data=payload, headers=self.headers
)
logging.debug(f"{self.current_id}<-- {self.base_url} ({res.status_code}) res:{res.json()}")
if res.ok and res.status_code != 204:
try:
logging.debug(f"{self.current_id}<-- {self.base_url} ({res.status_code}) res:{res.json()}")
except Exception as e:
logging.debug(f"{self.current_id}<-- {self.base_url} ({res.status_code}) - Could not decode json payload.}")
return res

@increment_id
Expand Down

0 comments on commit c0becdb

Please sign in to comment.