From fb1215a96663c6e52142595157589a8e70bfab1c Mon Sep 17 00:00:00 2001 From: RenaudFrere <90250126+RenaudFrere@users.noreply.github.com> Date: Wed, 27 Apr 2022 18:38:23 +0200 Subject: [PATCH] Update cape.py --- cape.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cape.py b/cape.py index c2e828d..afe3733 100644 --- a/cape.py +++ b/cape.py @@ -147,7 +147,10 @@ def execute(self, request): report_strings = report.pop("strings") report_suricata = report.pop("suricata") report_target = report.pop("target") - report_vt = report.pop("virustotal") + try: + report_vt = report.pop("virustotal") + except KeyError: + report_vt = None report_procmemory = report.pop("procmemory") report_signatures = report.pop("signatures") report_ttps = report.pop("ttps")