(self, request, client_address)
Override RPCServer method for IDLE

        Interrupt the MainThread and exit server if link is dropped.
Override RPCServer method for IDLE
Override RPCServer method for IDLE
def handle_error(self, request, client_address):
        """Override RPCServer method for IDLE

        Interrupt the MainThread and exit server if link is dropped.

        """
        global quitting
        try:
            raise
        except SystemExit:
            raise
        except EOFError:
            global exit_now
            exit_now = True
            thread.interrupt_main()
        except:
            erf = sys.__stderr__
            print(textwrap.dedent(f"""
            {'-'*40}
            Unhandled exception in user code execution server!'
            Thread: {threading.current_thread().name}
            IDLE Client Address: {client_address}
            Request: {request!r}
            """), file=erf)
            traceback.print_exc(limit=-20, file=erf)
            print(textwrap.dedent(f"""
            *** Unrecoverable, server exiting!

            Users should never see this message; it is likely transient.
            If this recurs, report this with a copy of the message
            and an explanation of how to make it repeat.
            {'-'*40}"""), file=erf)
            quitting = True
            thread.interrupt_main()
def handle_error ( self , request , client_address ) : global quitting try : raise except SystemExit : raise except EOFError : global exit_now exit_now = True thread . interrupt_main ( ) except : erf = sys . __stderr__ print ( textwrap . dedent ( f"""
            {'-'*40}
            Unhandled exception in user code execution server!'
            Thread: {threading.current_thread().name}
            IDLE Client Address: {client_address}
            Request: {request!r}
            """ ) , file = erf ) traceback . print_exc ( limit = - 20 , file = erf ) print ( textwrap . dedent ( f"""
            *** Unrecoverable, server exiting!

            Users should never see this message; it is likely transient.
            If this recurs, report this with a copy of the message
            and an explanation of how to make it repeat.
            {'-'*40}""" ) , file = erf ) quitting = True thread . interrupt_main ( )