mirror of https://github.com/CIRCL/lookyloo
fix: Avoid exception if none key
parent
e7d9c1cb1a
commit
404f9a3112
|
@ -404,7 +404,7 @@ def modules(tree_uuid: str):
|
|||
phishtank_short_result[url] = full_report['phish_detail_url']
|
||||
|
||||
urlscan_to_display: Dict = {}
|
||||
if 'urlscan' in modules_responses:
|
||||
if 'urlscan' in modules_responses and modules_responses.get('urlscan'):
|
||||
urlscan = modules_responses.pop('urlscan')
|
||||
if 'error' in urlscan['submission']:
|
||||
if 'description' in urlscan['submission']['error']:
|
||||
|
|
Loading…
Reference in New Issue