parent
58489c893e
commit
cfd1efe648
|
@ -68,7 +68,7 @@ class ProxyCommand(object):
|
||||||
# died and we can't proceed. The best option here is to
|
# died and we can't proceed. The best option here is to
|
||||||
# raise an exception informing the user that the informed
|
# raise an exception informing the user that the informed
|
||||||
# ProxyCommand is not working.
|
# ProxyCommand is not working.
|
||||||
raise BadProxyCommand(' '.join(self.cmd), e.strerror)
|
raise ProxyCommandFailure(' '.join(self.cmd), e.strerror)
|
||||||
return len(content)
|
return len(content)
|
||||||
|
|
||||||
def recv(self, size):
|
def recv(self, size):
|
||||||
|
@ -102,7 +102,7 @@ class ProxyCommand(object):
|
||||||
result = ''.join(read)
|
result = ''.join(read)
|
||||||
return result
|
return result
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
raise BadProxyCommand(' '.join(self.cmd), e.strerror)
|
raise ProxyCommandFailure(' '.join(self.cmd), e.strerror)
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
os.kill(self.process.pid, signal.SIGTERM)
|
os.kill(self.process.pid, signal.SIGTERM)
|
||||||
|
|
Loading…
Reference in New Issue