fix: Avoid exception if none key

pull/263/head
Raphaël Vinot 2021-09-17 10:06:59 +02:00
parent e7d9c1cb1a
commit 404f9a3112
1 changed files with 1 additions and 1 deletions

View File

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