Consistency!

master
Sven Slootweg 11 years ago
parent 6dbc743e7f
commit 0b781cb19b

@ -218,6 +218,12 @@ def parse_raw_whois(raw_data, normalized=[]):
data['emails'] = [email for email in data["emails"] if email not in known_emails]
except KeyError, e:
pass # Not present
try:
if len(data['emails']) == 0:
del data['emails']
except KeyError, e:
pass
data["raw"] = raw_data

Loading…
Cancel
Save