You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm would be nice if the maintainer of the core library @joepie91 could pull the fixes in the fork. There are fixes for this. Or let me know if you want me to make a pull request with the fix.
When performing a whois for Canadian domains the library crashes with a KeyError.
to reproduce.
import pythonwhois res = pythonwhois.get_whois('cns.ca')
error:
Traceback (most recent call last): File "/Users/skjortan/intelliagg/test_pythonwhois.py", line 3, in <module> res = pythonwhois.get_whois('cns.ca') File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pythonwhois/__init__.py", line 8, in get_whois return parse.parse_raw_whois(raw_data, normalized=normalized, never_query_handles=False, handle_server=server_list[-1]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pythonwhois/parse.py", line 516, in parse_raw_whois data["registrar"].insert(0, match.group(1).strip()) KeyError: 'registrar'
The text was updated successfully, but these errors were encountered: