whoisit
whoisit copied to clipboard
[BUGS] UnboundLocalError: local variable 'error_content' referenced before assignment
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.
Please update to 3.1.0 - this should be resolved. Thanks!
This can be closed, right?
Yep!