mirror of https://github.com/CIRCL/lookyloo
chg: Make mypy happy
parent
db26633ebb
commit
4d68515d20
|
@ -434,8 +434,8 @@ class Lookyloo():
|
||||||
else:
|
else:
|
||||||
hostname = urlparse(cache.url).hostname
|
hostname = urlparse(cache.url).hostname
|
||||||
if hostname:
|
if hostname:
|
||||||
if entries := self.riskiq.get_passivedns(hostname):
|
if _riskiq_entries := self.riskiq.get_passivedns(hostname):
|
||||||
to_return['riskiq'] = entries
|
to_return['riskiq'] = _riskiq_entries
|
||||||
except RiskIQError as e:
|
except RiskIQError as e:
|
||||||
self.logger.warning(e.response.content)
|
self.logger.warning(e.response.content)
|
||||||
if self.circl_pdns.available:
|
if self.circl_pdns.available:
|
||||||
|
@ -445,8 +445,8 @@ class Lookyloo():
|
||||||
else:
|
else:
|
||||||
hostname = urlparse(cache.url).hostname
|
hostname = urlparse(cache.url).hostname
|
||||||
if hostname:
|
if hostname:
|
||||||
if entries := self.circl_pdns.get_passivedns(hostname):
|
if _circl_entries := self.circl_pdns.get_passivedns(hostname):
|
||||||
to_return['circl_pdns'][hostname] = entries
|
to_return['circl_pdns'][hostname] = _circl_entries
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
def hide_capture(self, capture_uuid: str, /) -> None:
|
def hide_capture(self, capture_uuid: str, /) -> None:
|
||||||
|
|
Loading…
Reference in New Issue