[PR #49] [MERGED] adds try/catch/finally blocks to handle bad images #82

Closed
opened 2026-10-31 21:16:43 +00:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 39904fe adds try/catch/finally blocks to handle bad images
  • a65b4fb remove extra shared.total_tqdm.update call
  • be5a183 remove IndexError handler
  • ffdafad remove extra shared.total_tqdm.update call
  • 601c842 Bump 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pharmapsychotic/clip-interrogator-ext/pull/49 **Author:** [@genevera](https://github.com/genevera) **Created:** 5/31/2023 **Status:** ✅ Merged **Merged:** 6/11/2023 **Merged by:** [@pharmapsychotic](https://github.com/pharmapsychotic) **Base:** `main` ← **Head:** `handle_unreadable_files` --- ### 📝 Commits (5) - [`39904fe`](https://github.com/pharmapsychotic/clip-interrogator-ext/commit/39904fe78918443480b5b025995f4096d21c62ea) adds try/catch/finally blocks to handle bad images - [`a65b4fb`](https://github.com/pharmapsychotic/clip-interrogator-ext/commit/a65b4fbb6c305cb2151c56a8501adb1b1299e137) remove extra shared.total_tqdm.update call - [`be5a183`](https://github.com/pharmapsychotic/clip-interrogator-ext/commit/be5a183ae90c8480ff31546dae439332195b890d) remove IndexError handler - [`ffdafad`](https://github.com/pharmapsychotic/clip-interrogator-ext/commit/ffdafad124c354ad960809562779a95c28204d29) remove extra shared.total_tqdm.update call - [`601c842`](https://github.com/pharmapsychotic/clip-interrogator-ext/commit/601c842441bc62f0548906d73d50755c95c1be3b) Bump version, fix display of some other batch errors ### 📊 Changes **1 file changed** (+36 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `scripts/clip_interrogator_ext.py` (+36 -22) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 21:16:43 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pharmapsychotic/clip-interrogator-ext#82
No description provided.