summaryrefslogtreecommitdiff
path: root/whois.py
diff options
context:
space:
mode:
Diffstat (limited to 'whois.py')
-rw-r--r--whois.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/whois.py b/whois.py
index 2681db0..be98034 100644
--- a/whois.py
+++ b/whois.py
@@ -4,6 +4,7 @@ def extract_field(field, response):
for line in response:
if line.startswith(field):
return line.split(' ')[-1].strip()
+ return 'Unknown'
def whois(ip):
cp = run(['whois', ip], capture_output=True)