The widget uses the functionalities of the Bag class without catching the eventual exceptions that could be raised due to faulty bags.
If this happens the exception was raised up to the terminal where the traceback was printed.
In the GUI on the other hand no indication was of an error was printed and "Loading" would have stayed in the status bar indefinitely.
The added code block outputs the information about the cause of the error to the status bar and the terminal.
The widget uses the functionalities of the Bag class without catching the eventual exceptions that could be raised due to faulty bags. If this happens the exception was raised up to the terminal where the traceback was printed. In the GUI on the other hand no indication was of an error was printed and "Loading" would have stayed in the status bar indefinitely. The added code block outputs the information about the cause of the error to the status bar and the terminal.