fix logic error from smda backend removal

This commit is contained in:
mr-tz
2023-01-05 12:27:27 +01:00
parent 7c102509bd
commit 985ea5ebdc
+2 -3
View File
@@ -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()