From d461316625513aa7509f4e906363eec4e3b9af3c Mon Sep 17 00:00:00 2001 From: David Mougeolle Date: Tue, 7 Jan 2020 23:07:44 +0100 Subject: [PATCH] Comply with mypy --- theHarvester/discovery/dnssearch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theHarvester/discovery/dnssearch.py b/theHarvester/discovery/dnssearch.py index 0ab624a2..0a1e07ab 100644 --- a/theHarvester/discovery/dnssearch.py +++ b/theHarvester/discovery/dnssearch.py @@ -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