From 985ea5ebdcc9048a1aca96d8c1b3ff046aa93e4e Mon Sep 17 00:00:00 2001 From: mr-tz Date: Thu, 5 Jan 2023 12:27:27 +0100 Subject: [PATCH] fix logic error from smda backend removal --- capa/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/capa/main.py b/capa/main.py index d330ae81..b3a654a4 100644 --- a/capa/main.py +++ b/capa/main.py @@ -512,7 +512,8 @@ def get_extractor( return capa.features.extractors.dnfile.extractor.DnfileFeatureExtractor(path) - if backend == BACKEND_VIV: + # default to use vivisect backend + else: import capa.features.extractors.viv.extractor with halo.Halo(text="analyzing program", spinner="simpleDots", stream=sys.stderr, enabled=not disable_progress): @@ -530,8 +531,6 @@ def get_extractor( return capa.features.extractors.viv.extractor.VivisectFeatureExtractor(vw, path) - raise ValueError("unexpected extractor specification: format=%s backend=%s", format_, backend) - def get_file_extractors(sample: str, format_: str) -> List[FeatureExtractor]: file_extractors: List[FeatureExtractor] = list()