Skip to content

Commit

Permalink
Increase output counter on errored files
Browse files Browse the repository at this point in the history
  • Loading branch information
marySalvi committed Feb 14, 2025
1 parent 82ffd75 commit ad262d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagedephi/redact/redact.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ def redact_images(
"detail": "There was an unexpected error when redacting this image.",
}
)
output_file_counter += 1
continue
if not redaction_plan.is_comprehensive():
nested_failed_dir: Path = Path()
logger.info(f"Redaction could not be performed for {image_file.name}.")
logger.error(f"Redaction could not be performed for {image_file.name}.")
failed_img_counter += 1

if failed_img_counter == 1:
failed_dir.mkdir(parents=True)
failed_manifest_file.touch()
Expand Down

0 comments on commit ad262d7

Please sign in to comment.