Fix error handling in binwalk analyzer to check for zip existence before reporting errors

This commit is contained in:
aradhyacp
2025-12-30 06:49:34 +05:30
parent 566055e5eb
commit 54adcbcbfa
+1 -1
View File
@@ -44,7 +44,7 @@ def analyze_binwalk(input_img: Path, output_dir: Path) -> None:
if extracted_dir.exists():
shutil.rmtree(extracted_dir)
if len(stderr) > 0:
if len(stderr) > 0 and not zip_exist:
err = {
"binwalk": {
"status": "error",