From a9a9ec83658b811f403cf2aba4b48bd5b6a59aa3 Mon Sep 17 00:00:00 2001 From: ablGH <84137008+ablGH@users.noreply.github.com> Date: Mon, 25 Oct 2021 11:44:22 +0200 Subject: [PATCH] Update virustotal.py --- analyzers/VirusTotal/virustotal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzers/VirusTotal/virustotal.py b/analyzers/VirusTotal/virustotal.py index 6f8824e52..3baef4d20 100755 --- a/analyzers/VirusTotal/virustotal.py +++ b/analyzers/VirusTotal/virustotal.py @@ -275,7 +275,7 @@ def run(self): # if aged and enabled rescan if self.data_type == "hash" and self.rescan_hash_older_than_days: - if ( + if "scan_date" in results and ( datetime.strptime(results["scan_date"], "%Y-%m-%d %H:%M:%S") - datetime.now() ).days > self.rescan_hash_older_than_days: