Skip to content

Commit

Permalink
Fix TypeError in P2P._terminate() (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov authored and mryab committed Jul 23, 2023
1 parent 77b9b2c commit 6fd7fdb
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 6fd7fdb

Please sign in to comment.