def trace_dispatch(self, frame, event, arg): try: return super(Pdb, self).trace_dispatch(frame, event, arg) except bdb.BdbQuit: pass