Commit fc512e0b authored by Romain Courteaud's avatar Romain Courteaud

whois: fixup date reporting

parent 518db7b9
......@@ -373,13 +373,16 @@ class WebBot:
"registrar": domain_change["registrar"],
"whois_server": domain_change["whois_server"],
"creation_date": rfc822(domain_change["creation_date"])
if (domain_change["creation_date"] is not None)
if (
type(domain_change["creation_date"])
is datetime.datetime
)
else None,
"updated_date": rfc822(domain_change["updated_date"])
if (domain_change["updated_date"] is not None)
if (domain_change["updated_date"] is datetime.datetime)
else None,
"expiration_date": rfc822(domain_change["expiration_date"])
if (domain_change["expiration_date"] is not None)
if (domain_change["expiration_date"] is datetime.datetime)
else None,
"name_servers": domain_change["name_servers"],
"whois_status": domain_change["whois_status"],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment