mirror of https://github.com/CIRCL/lookyloo
fix: Make mypy happy
parent
3ed7608f16
commit
aec6fe2632
|
@ -573,9 +573,12 @@ def ressources():
|
||||||
capture_uuid, url_uuid, hostnode_uuid = i.get_hash_uuids(h)
|
capture_uuid, url_uuid, hostnode_uuid = i.get_hash_uuids(h)
|
||||||
try:
|
try:
|
||||||
ressource = lookyloo.get_ressource(capture_uuid, url_uuid, h)
|
ressource = lookyloo.get_ressource(capture_uuid, url_uuid, h)
|
||||||
except lookyloo.exceptions.MissingUUID:
|
except MissingUUID:
|
||||||
ressource = ['unknown', '', 'unknown']
|
pass
|
||||||
|
if ressource:
|
||||||
ressources.append((h, freq, domain_freq, context.get(h), capture_uuid, url_uuid, hostnode_uuid, ressource[0], ressource[2]))
|
ressources.append((h, freq, domain_freq, context.get(h), capture_uuid, url_uuid, hostnode_uuid, ressource[0], ressource[2]))
|
||||||
|
else:
|
||||||
|
ressources.append((h, freq, domain_freq, context.get(h), capture_uuid, url_uuid, hostnode_uuid, 'unknown', 'unknown'))
|
||||||
return render_template('ressources.html', ressources=ressources)
|
return render_template('ressources.html', ressources=ressources)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue