diff options
author | Marius Gedminas <marius@gedmin.as> | 2014-02-13 09:47:13 +0200 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-02-13 09:38:00 -0800 |
commit | cfd1efe64878912964797e1a6f2303387f7e1848 (patch) | |
tree | cf49042bfe286115b3a289ec132b171812ecec98 | |
parent | 58489c893e3f62947ee8235c2a07fc5465949aeb (diff) |
Fix NameError in error-handling case
Fixes #268
-rw-r--r-- | paramiko/proxy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/proxy.py b/paramiko/proxy.py index abdd157c..a24fbb2d 100644 --- a/paramiko/proxy.py +++ b/paramiko/proxy.py @@ -68,7 +68,7 @@ class ProxyCommand(object): # died and we can't proceed. The best option here is to # raise an exception informing the user that the informed # ProxyCommand is not working. - raise BadProxyCommand(' '.join(self.cmd), e.strerror) + raise ProxyCommandFailure(' '.join(self.cmd), e.strerror) return len(content) def recv(self, size): @@ -102,7 +102,7 @@ class ProxyCommand(object): result = ''.join(read) return result except IOError, e: - raise BadProxyCommand(' '.join(self.cmd), e.strerror) + raise ProxyCommandFailure(' '.join(self.cmd), e.strerror) def close(self): os.kill(self.process.pid, signal.SIGTERM) |