mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 09:41:06 +08:00
Comply with mypy
This commit is contained in:
parent
8a267e7a3c
commit
d461316625
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue