mirror of https://github.com/CIRCL/lookyloo
fix: Crash if there are no ressources
parent
9eb08beb3c
commit
611b2a8ff5
|
@ -194,6 +194,8 @@ class Context():
|
||||||
"""Return a dictionary of content resources found in the local known_content database, or in SaneJS (if enabled)"""
|
"""Return a dictionary of content resources found in the local known_content database, or in SaneJS (if enabled)"""
|
||||||
all_ressources_hashes = self._get_resources_hashes(har2tree_container)
|
all_ressources_hashes = self._get_resources_hashes(har2tree_container)
|
||||||
# Get from local cache of known content all descriptions related to the ressources.
|
# Get from local cache of known content all descriptions related to the ressources.
|
||||||
|
if not all_ressources_hashes:
|
||||||
|
return {}
|
||||||
known_content_table = dict(zip(all_ressources_hashes,
|
known_content_table = dict(zip(all_ressources_hashes,
|
||||||
self.redis.hmget('known_content', all_ressources_hashes)))
|
self.redis.hmget('known_content', all_ressources_hashes)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue