Skip to content

Commit 26ee838

Browse files
authored
Update ssh_tunnel.py
1 parent a96a04e commit 26ee838

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ssh_tunnel.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def create_ssh_tunnel(
4747
hostname,
4848
]
4949
try:
50-
logger.debug(f"Execute cmd: {' '.join(ssh_tunnel_cmd)}")
50+
logger.debug(f"Executing cmd: {' '.join(ssh_tunnel_cmd)}.")
5151
subprocess.run(
5252
ssh_tunnel_cmd,
5353
check=True,
@@ -58,22 +58,22 @@ def create_ssh_tunnel(
5858
yield ssh_socket_filename
5959
except (subprocess.CalledProcessError, subprocess.TimeoutExpired, ValueError) as ex:
6060
logger.exception(
61-
f"Exception occurred when trying to open SSH tunnel:\n{ex}",
61+
f"Exception occurred when trying to open SSH tunnel:\n{ex}.",
6262
exc_info=False,
6363
)
6464
raise SSHTunnelConnectionError(ex) from ex
6565
finally:
6666
try:
6767
logger.debug(
68-
f"Execute cmd: {' '.join(ssh_tunnel_terminate_cmd)}",
68+
f"Executing cmd: {' '.join(ssh_tunnel_terminate_cmd)}.",
6969
)
7070
subprocess.run(
7171
ssh_tunnel_terminate_cmd,
7272
check=True,
7373
stdout=subprocess.DEVNULL,
7474
stderr=subprocess.DEVNULL,
7575
)
76-
logger.debug("Deleting socket file")
76+
logger.debug("Deleting socket file.")
7777
os.remove(local_socket)
7878
except (subprocess.CalledProcessError, FileNotFoundError):
7979
pass
@@ -90,4 +90,4 @@ def gen_temp_socket_filename(
9090
temp_socket_filename = tmpfile.name
9191
if temp_socket_filename is not None:
9292
return temp_socket_filename
93-
raise RuntimeError("Unable to create temp file")
93+
raise RuntimeError("Unable to create temp file.")

0 commit comments

Comments
 (0)