diff --git a/src/SSHLibrary/pythonclient.py b/src/SSHLibrary/pythonclient.py index b603ce09f..870110ddf 100644 --- a/src/SSHLibrary/pythonclient.py +++ b/src/SSHLibrary/pythonclient.py @@ -115,7 +115,10 @@ def _output_available(self): return self._shell.recv_ready() def write(self, text): - self._shell.sendall(text) + try: + self._shell.sendall(text) + except SSHClientException, e: + raise RuntimeError(e) class SFTPClient(AbstractSFTPClient):