diff --git a/hivemind/p2p/p2p_daemon.py b/hivemind/p2p/p2p_daemon.py index 498ec42ed..4acea4d72 100644 --- a/hivemind/p2p/p2p_daemon.py +++ b/hivemind/p2p/p2p_daemon.py @@ -658,9 +658,9 @@ def _terminate(self) -> None: self._child.terminate() logger.debug(f"Terminated p2pd with id = {self.peer_id}") - with suppress(FileNotFoundError): + with suppress(FileNotFoundError, TypeError): os.remove(self._daemon_listen_maddr["unix"]) - with suppress(FileNotFoundError): + with suppress(FileNotFoundError, TypeError): os.remove(self._client_listen_maddr["unix"]) @staticmethod