Skip to content

Commit

Permalink
Keep output string if not using unixsocket
Browse files Browse the repository at this point in the history
  • Loading branch information
heroesm committed Oct 8, 2020
1 parent 8553ac1 commit a784321
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/remote_pdb.py
Expand Up @@ -102,7 +102,10 @@ def __init__(
listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True)
listen_socket.bind((host, port))
if not self._quiet:
cry("RemotePdb session open at {}, waiting for connection ...".format(listen_socket.getsockname()))
if self.unixsocket is None:
cry("RemotePdb session open at {}:{}, waiting for connection ...".format(*listen_socket.getsockname()))
else:
cry("RemotePdb session open at {}, waiting for connection ...".format(listen_socket.getsockname()))
listen_socket.listen(1)
connection, address = listen_socket.accept()
if not self._quiet:
Expand Down

0 comments on commit a784321

Please sign in to comment.