Skip to content

Commit

Permalink
add extra security
Browse files Browse the repository at this point in the history
  • Loading branch information
oddaspa committed Mar 21, 2024
1 parent e1af7d2 commit 020639a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pyclarify/jsonrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def make_request(self, payload:dict):
self.base_url, data=payload, headers=self.headers
)
if res.ok and res.status_code != 204:
logging.debug(f"{self.current_id}<-- {self.base_url} ({res.status_code}) res:{res.json()}")
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 020639a

Please sign in to comment.