Skip to content

Commit 123b74b

Browse files
authored
ssh: catch EOFError (#420)
Fix #417.
1 parent 0b5ea39 commit 123b74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdispatcher/contexts/ssh_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def exec_command(self, cmd):
295295
assert self.ssh is not None
296296
try:
297297
return self.ssh.exec_command(cmd)
298-
except (paramiko.ssh_exception.SSHException, socket.timeout) as e:
298+
except (paramiko.ssh_exception.SSHException, socket.timeout, EOFError) as e:
299299
# SSH session not active
300300
# retry for up to 3 times
301301
# ensure alive

0 commit comments

Comments
 (0)