def start(self): if self._socket is not None: try: self._socket.connect(self._addr) except (FileNotFoundError, ConnectionRefusedError): raise Handler.start(self)