Replies: 1 comment 1 reply
-
Is there a specific error you encountered? There already exist try-except blocks around parts of the code that need them. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
The purpose of this pull request is to enhance the error handling in TagGUI to prevent the program from being blocked by errors while still logging them for debugging purposes. By implementing these changes, TagGUI will become more resilient and user-friendly, as it will continue executing even if errors occur, and the errors will be logged for further investigation.
Proposed Changes:
In functions that interact with external services (e.g., ML models) or read/write files, handle specific expected exceptions (e.g., connection errors, missing files) and use a catch-all generic block for unexpected errors.
In callbacks related to the user interface, display user-friendly error messages in dialogs or the status bar without interrupting the program.
By implementing these changes, TagGUI will become more robust and user-friendly. Errors will be caught, logged, and handled gracefully, allowing the program to continue executing while still keeping track of any issues that arise.
Please let me know if you have any questions or suggestions regarding these proposed changes.
Beta Was this translation helpful? Give feedback.
All reactions