Skip to content

Commit 0362148

Browse files
authored
Merge pull request #1265 from mandiant/fix/extractor-logic
fix logic error from smda backend removal
2 parents 64ebf14 + 985ea5e commit 0362148

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

capa/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,8 @@ def get_extractor(
512512

513513
return capa.features.extractors.dnfile.extractor.DnfileFeatureExtractor(path)
514514

515-
if backend == BACKEND_VIV:
515+
# default to use vivisect backend
516+
else:
516517
import capa.features.extractors.viv.extractor
517518

518519
with halo.Halo(text="analyzing program", spinner="simpleDots", stream=sys.stderr, enabled=not disable_progress):
@@ -530,8 +531,6 @@ def get_extractor(
530531

531532
return capa.features.extractors.viv.extractor.VivisectFeatureExtractor(vw, path)
532533

533-
raise ValueError("unexpected extractor specification: format=%s backend=%s", format_, backend)
534-
535534

536535
def get_file_extractors(sample: str, format_: str) -> List[FeatureExtractor]:
537536
file_extractors: List[FeatureExtractor] = list()

0 commit comments

Comments
 (0)