From afb72867f4d46bcd89fd3d3c1a22966fc081bb5f Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 1 Aug 2024 07:58:29 +0200 Subject: [PATCH] assert sample analysis data is present --- scripts/minimize_vmray_results.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/minimize_vmray_results.py b/scripts/minimize_vmray_results.py index e36688bbb..15ab81c26 100644 --- a/scripts/minimize_vmray_results.py +++ b/scripts/minimize_vmray_results.py @@ -44,6 +44,7 @@ def main(argv=None): sv2_json = vmra.zipfile.read("logs/summary_v2.json", pwd=DEFAULT_ARCHIVE_PASSWORD) flog_xml = vmra.zipfile.read("logs/flog.xml", pwd=DEFAULT_ARCHIVE_PASSWORD) sample_file_buf = vmra.sample_file_buf + assert vmra.sample_file_analysis is not None sample_sha256: str = vmra.sample_file_analysis.hash_values.sha256.lower() new_zip_name = f"{analysis_archive.parent / analysis_archive.stem}_min.zip"