csc301-2023-fall / project-34-qeynet-inc-t

Repository for Astra, a U of T CSC301 team project developed for QEYnet.
MIT License
0 stars 1 forks source link

Add proper handling of top-level exceptions #24

Open shape-warrior-t opened 9 months ago

shape-warrior-t commented 9 months ago

Currently, there is no top-level exception handling -- we simply let Tkinter use its default exception handling behaviour. If there is a bug in the program that raises an exception (outside of certain file-related actions, which do catch and display any raised exceptions), then the current operation is aborted, an error message is printed to console, and the program "silently" continues running. I'm not sure that's desirable behaviour, given the type of program that Astra is.

Apparently, Tkinter has a special mechanism for error handling. This StackOverflow question might provide some useful information.