Skip to content

Fix: Implement Error Handling for Invalid Image Formats #2

@abduznik

Description

@abduznik

Context: Prevents the batch process from crashing when encountering non-image files or corrupt data.

Directives:

  • Locate the file processing loop in main.py.
  • Wrap the Image.open() call in a try/except block catching PIL.UnidentifiedImageError and IOError.
  • Log a warning message and continue to the next file instead of terminating execution.

Automated by Gemini v3.2.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedGenerated by AIbugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions