def serve(self):
        while self._event.is_set():
            try:
                self.handle_request()
            except __HOLE__:
                # When server is being closed, while loop can run once
                # after setting self._event = False depending on how it
                # is scheduled.
                pass
dataset/ETHPy150Open pydy/pydy/pydy/viz/server.py/StoppableHTTPServer.serve