add return

pull/208/head
Sebdraven 2018-07-12 15:02:46 +02:00
parent 7f52a15d16
commit 966f9603a9
1 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ def expand_whois(api, domain):
status_ok = True
item_registrant = __select_registrant_item(results)
if item_registrant:
print(item_registrant)
if 'email' in item_registrant[0]:
r.append(
{
@ -511,7 +511,7 @@ def __select_registrant_item(entry):
if 'contacts' in entry:
res = list(filter(lambda x: x['type'] == 'registrant',
entry['contacts']))
print(res)
return res
if 'contact' in entry:
res = list(filter(lambda x: x['type'] == 'registrant',
entry['contact']))