diff options
| -rw-r--r-- | app.py | 1 | ||||
| -rw-r--r-- | whois.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -9,6 +9,7 @@ env = 'PROD' if 'PROD' in environ else 'DEV' TEMPLATE = ''' /----------------------------------------\\ | {ip:39}| +| | | {route:39}| | {origin:39}| | {descr:39}| @@ -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) |
