From 72ae202df3e317573c056c47f3f65140539b7307 Mon Sep 17 00:00:00 2001 From: Scott Kuhl Date: Mon, 7 Sep 2020 15:56:59 -0400 Subject: [PATCH] Remove extra whitespace, wrap long lines --- sshuttle/client.py | 8 +++++--- 1 file 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)