def user_exception(self, frame, exc_tuple):
    'This function is called if an exception occurs,\n        but only if we are to stop at or just below this level.'
    frame.f_locals['__exc_tuple__'] = exc_tuple
    if (not self._wait_for_mainpyfile):
        self.interaction(frame, exc_tuple)
This function is called if an exception occurs,
but only if we are to stop at or just below this level.
def user_exception(self, frame, exc_tuple):
    'This function is called if an exception occurs,\n        but only if we are to stop at or just below this level.'
    frame.f_locals['__exc_tuple__'] = exc_tuple
    if (not self._wait_for_mainpyfile):
        self.interaction(frame, exc_tuple)