Bubble up ProxyCommandFailure in packetizer
This commit is contained in:
parent
394ab2699e
commit
0a276ac34b
|
@ -29,7 +29,7 @@ import time
|
|||
|
||||
from paramiko.common import *
|
||||
from paramiko import util
|
||||
from paramiko.ssh_exception import SSHException
|
||||
from paramiko.ssh_exception import SSHException, ProxyCommandFailure
|
||||
from paramiko.message import Message
|
||||
|
||||
|
||||
|
@ -254,6 +254,8 @@ class Packetizer (object):
|
|||
retry_write = True
|
||||
else:
|
||||
n = -1
|
||||
except ProxyCommandFailure:
|
||||
raise # so it doesn't get swallowed by the below catchall
|
||||
except Exception:
|
||||
# could be: (32, 'Broken pipe')
|
||||
n = -1
|
||||
|
|
Loading…
Reference in New Issue