Skip to content

Commit

Permalink
Fix TypeError in P2P._terminate()
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Jul 22, 2023
1 parent da130cd commit 617c262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hivemind/p2p/p2p_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 617c262

Please sign in to comment.