Page 337 -
P. 337

unexceptional exception handler


          There’s an issue with the exception handler


          You do a quick demo for the folks at Head-Ex and, even though the program
           works, it’s not quite what they need.




                                      I‛m not sure the error
                                      message is really visible
                                      in the title bar. If there
                                      is an error, I really don‛t
                                      want to miss it.



































           The error message is more visible than when it was appearing in the Python
           Shell, but it isn’t a whole lot more visible. Sure, you’ve proved that you can
           spot when an error happens and then run an exception handler in order to
           do something about the error. But you really need to do something that will
           interrupt the user and highlight the situation. You need something that will
           force the user to acknowledge the error before he continues doing something
           else.

           A GUI message box might do the trick.


           302    Chapter 8 ½
   332   333   334   335   336   337   338   339   340   341   342