Skip to content

Commit ad262d7

Browse files
committed
Increase output counter on errored files
1 parent 82ffd75 commit ad262d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

imagedephi/redact/redact.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ def redact_images(
192192
"detail": "There was an unexpected error when redacting this image.",
193193
}
194194
)
195+
output_file_counter += 1
195196
continue
196197
if not redaction_plan.is_comprehensive():
197198
nested_failed_dir: Path = Path()
198-
logger.info(f"Redaction could not be performed for {image_file.name}.")
199+
logger.error(f"Redaction could not be performed for {image_file.name}.")
199200
failed_img_counter += 1
200-
201201
if failed_img_counter == 1:
202202
failed_dir.mkdir(parents=True)
203203
failed_manifest_file.touch()

0 commit comments

Comments
 (0)