-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mismatched rdap keys #65
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #65 +/- ##
==========================================
- Coverage 88.62% 85.84% -2.78%
==========================================
Files 8 8
Lines 2821 2960 +139
==========================================
+ Hits 2500 2541 +41
- Misses 321 419 +98
☔ View full report in Codecov by Sentry. |
This actually broke the functionality, advertised in the main README: both def convert_whodap_keys(parser_output: dict) -> dict:
conversions = [ # snip
(TLDBaseKeys.REGISTRAR, "registrar_name", False), # 'registrar'
]
for asyncwhois_key, whodap_key, keep in conversions:
if keep:
parser_output[asyncwhois_key] = parser_output.get(whodap_key)
else:
parser_output[asyncwhois_key] = parser_output.pop(whodap_key)
# at this point, parser_output['registrar'] is the registrar name
non_whodap_keys = [
TLDBaseKeys.REGISTRAR, # also 'registrar'
]
for key in non_whodap_keys:
parser_output[key] = None # overwrites any value present in parser_output
# at this point, parser_output['registrar'] is None The easiest fix would probably be to remove this key, present in |
Thanks for pointing this out! I added your suggestion and rolled it into v1.1.4. |
Fixes: