From 565350a5ec598e50b7a0c93b28bb9a205ce0c53c Mon Sep 17 00:00:00 2001 From: meeb Date: Sun, 22 Sep 2024 18:30:41 +1000 Subject: [PATCH] fix missing error var, resolves #42 --- whoisit/query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whoisit/query.py b/whoisit/query.py index a32c41c..fa0ef41 100644 --- a/whoisit/query.py +++ b/whoisit/query.py @@ -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