This commit is contained in:
Be
2024-03-03 17:42:38 +01:00
parent 41b8501766
commit 1983047bcb

View File

@@ -29,6 +29,9 @@ def whois_query(query, get_field="netname", get_org=False):
if line.startswith(get_field + ':'):
basic_name = line.split(':')[1].strip()
if org_name is None:
org_name = 'No org name found'
if get_org is True:
return basic_name + ' (' + org_name + ')'
else: