whoisit icon indicating copy to clipboard operation
whoisit copied to clipboard

[BUGS] UnboundLocalError: local variable 'error_content' referenced before assignment

Open trimbilrepo opened this issue 7 months ago • 1 comments

got this error : UnboundLocalError: local variable 'error_content' referenced before assignment whois_data = whoisit.domain(domain_name=domain)

whois_data = whoisit.domain(domain_name=domain)
 File "/usr/local/lib/python3.10/dist-packages/whoisit/__init__.py", line 102, in domain
   req_resp: dict = q.request()
 File "/usr/local/lib/python3.10/dist-packages/whoisit/query.py", line 282, in request
   return self._process_response(response)
 File "/usr/local/lib/python3.10/dist-packages/whoisit/query.py", line 265, in _process_response
   raise QueryError(f'Failed to parse RDAP Query response as JSON: {e}', response=error_content) from e
UnboundLocalError: local variable 'error_content' referenced before assignment
Name: whoisit
Version: 3.0.4

after checking the current code, it has patched but has not release yet.

trimbilrepo avatar Jun 01 '25 18:06 trimbilrepo

Please update to 3.1.0 - this should be resolved. Thanks!

meeb avatar Jun 02 '25 13:06 meeb

This can be closed, right?

KolevVelyan avatar Nov 13 '25 10:11 KolevVelyan

Yep!

meeb avatar Nov 13 '25 14:11 meeb