I have an exception raised in a matplotlib keypress event code. The exception is silently caught by matplotlib and printed. I would like to catch the exception (in order to