mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-11-05 01:27:20 +00:00
[PR #49] [MERGED] adds try/catch/finally blocks to handle bad images #82
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pharmapsychotic/clip-interrogator-ext#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pharmapsychotic/clip-interrogator-ext/pull/49
Author: @genevera
Created: 5/31/2023
Status: ✅ Merged
Merged: 6/11/2023
Merged by: @pharmapsychotic
Base:
main← Head:handle_unreadable_files📝 Commits (5)
39904feadds try/catch/finally blocks to handle bad imagesa65b4fbremove extra shared.total_tqdm.update callbe5a183remove IndexError handlerffdafadremove extra shared.total_tqdm.update call601c842Bump version, fix display of some other batch errors📊 Changes
1 file changed (+36 additions, -22 deletions)
View changed files
📝
scripts/clip_interrogator_ext.py(+36 -22)📄 Description
I noticed that the extension would crash out if an image file couldnt be read by PIL. So I added some try/except/finally blocks to handle those exceptions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.