Bubble up ProxyCommandFailure in packetizer

This commit is contained in:
Jeff Forcier 2012-11-05 17:31:17 -08:00
parent 394ab2699e
commit 0a276ac34b
1 changed files with 3 additions and 1 deletions

View File

@ -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