Skip to content

Commit

Permalink
Merge pull request #289 from DigitalSlideArchive/fix-failed_manifest_bug
Browse files Browse the repository at this point in the history
Increase output counter on errored files
  • Loading branch information
marySalvi authored Feb 19, 2025
2 parents 82ffd75 + ad262d7 commit 6739bc8
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 6739bc8

Please sign in to comment.