chg: Make mypy happy

pull/847/head
Raphaël Vinot 2023-12-13 14:01:14 +01:00
parent db26633ebb
commit 4d68515d20
1 changed files with 4 additions and 4 deletions

View File

@ -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: