From 95fcafa9e834077ddb9287186d7b4bc69ba57e47 Mon Sep 17 00:00:00 2001 From: ShakedShechter Date: Mon, 21 Jan 2019 10:02:57 +0200 Subject: [PATCH] handles error capable handling domain rives-odon.fr --- pythonwhois/parse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pythonwhois/parse.py b/pythonwhois/parse.py index 66217d6..4a16870 100644 --- a/pythonwhois/parse.py +++ b/pythonwhois/parse.py @@ -997,6 +997,8 @@ def parse_nic_contact(data): for regex in nic_contact_regexes: for segment in data: matches = re.finditer(regex, segment) + if "{}".format(type(matches)) == "": + return handle_contacts for match in matches: handle_contacts.append(match.groupdict())