Skip to content

Commit

Permalink
fix missing error var, resolves #42
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Sep 22, 2024
1 parent 5c226aa commit 565350a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whoisit/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def _process_response(self, response):
try:
return response.json()
except (TypeError, ValueError) as e:
error_content = self._decode_content(response)
raise QueryError(f'Failed to parse RDAP Query response as JSON: {e}', response=error_content) from e


Expand Down

0 comments on commit 565350a

Please sign in to comment.