Comply with mypy

This commit is contained in:
David Mougeolle 2020-01-07 23:07:44 +01:00
parent 8a267e7a3c
commit d461316625

View file

@ -117,7 +117,7 @@ def run(
return str(a_record_answer.canonical_name)
except Exception:
pass
return ''
def process(
self) -> List[str]:
@ -135,7 +135,7 @@ def process(
results = []
for entry in self._list_ips_in_range():
host = self.run(entry)
if host is not None:
if host is not None and host:
# print(' : ' + host.split(':')[1])
results.append(host)
return results