This commit is contained in:
Willi Ballenthin
2023-10-17 14:42:58 +00:00
parent 92daf3a530
commit 1aac4a1a69
11 changed files with 16 additions and 16 deletions

View File

@@ -112,7 +112,7 @@ def get_capa_results(args):
extractor = capa.main.get_extractor(
path, format, os_, capa.main.BACKEND_VIV, sigpaths, should_save_workspace, disable_progress=True
)
except capa.main.UnsupportedFormatError:
except capa.exceptions.UnsupportedFormatError:
# i'm 100% sure if multiprocessing will reliably raise exceptions across process boundaries.
# so instead, return an object with explicit success/failure status.
#
@@ -123,7 +123,7 @@ def get_capa_results(args):
"status": "error",
"error": f"input file does not appear to be a PE file: {path}",
}
except capa.main.UnsupportedRuntimeError:
except capa.exceptions.UnsupportedRuntimeError:
return {
"path": path,
"status": "error",