Skip to content

Fix error handling in image processing and show correct Error#191

Merged
nadermx merged 1 commit into
nadermx:mainfrom
Naji-Ullah:fix/gui-error-message
Jul 10, 2026
Merged

Fix error handling in image processing and show correct Error#191
nadermx merged 1 commit into
nadermx:mainfrom
Naji-Ullah:fix/gui-error-message

Conversation

@Naji-Ullah

@Naji-Ullah Naji-Ullah commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The GUI was showing unclear error message like "Failed to process image: None" when image processing failed as it was not detecting if some libraries were missing.

This change moves the backgroundremover import into the existing processing try block so import errors can be caught and displayed by the GUI error modal. It also falls back to the exception type as before when the error message is empty.

This helps users see useful errors, such as missing dependencies, instead of a blank or None message.

@nadermx nadermx merged commit c574d18 into nadermx:main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants