Skip to content

Commit

Permalink
Merge pull request #114 from lsst-sitcom/tickets/DM-44944
Browse files Browse the repository at this point in the history
DM-44944: Handle JSON-free error responses properly.
  • Loading branch information
ktlim authored Jun 20, 2024
2 parents 263c6c0 + 4320969 commit a0f5ca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/lsst/summit/utils/consdbClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ def _check_status(r: requests.Response) -> None:
try:
r.raise_for_status()
except requests.HTTPError as e:
e.add_note(str(e.response.json()))
try:
e.add_note(str(e.response.json()))
except requests.JSONDecodeError:
pass
raise e


Expand Down

0 comments on commit a0f5ca4

Please sign in to comment.