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()