diff options
author | Scott Kuhl <kuhl@mtu.edu> | 2020-09-07 15:56:59 -0400 |
---|---|---|
committer | Scott Kuhl <kuhl@mtu.edu> | 2020-09-07 15:56:59 -0400 |
commit | 72ae202df3e317573c056c47f3f65140539b7307 (patch) | |
tree | ef2db47b90f2880711ed6c209e18ec55f6db3581 /sshuttle/client.py | |
parent | 5d6b14673f2043c3511f221201f0255171ae474a (diff) |
Remove extra whitespace, wrap long lines
Diffstat (limited to 'sshuttle/client.py')
-rw-r--r-- | sshuttle/client.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py index 62fbda6..5a1db48 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -549,13 +549,15 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename, # process is no longer our child (it returns 0 all the # time). if not psutil.pid_exists(serverproc.pid): - raise Fatal('ssh connection to server (pid %d) exited.' % serverproc.pid) + raise Fatal('ssh connection to server (pid %d) exited.' % + serverproc.pid) else: rv = serverproc.poll() # poll returns None if process hasn't exited. if rv is not None: - raise Fatal('ssh connection to server (pid %d) exited with returncode %d' % (serverproc.pid, rv)) - + raise Fatal('ssh connection to server (pid %d) exited' + 'with returncode %d' % (serverproc.pid, rv)) + while 1: check_ssh_alive() ssnet.runonce(handlers, mux) |