diff options
author | Robey Pointer <robey@lag.net> | 2006-06-26 23:07:03 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-06-26 23:07:03 -0700 |
commit | be86d5474aedcea63af39a271a0f437a79b3d780 (patch) | |
tree | f987c9b5663fac32c93efb6a934c8105d6ef6b9e | |
parent | 79d239693a4430b117d3ec0bb16ad26934cb9118 (diff) |
[project @ robey@lag.net-20060627060703-3d7eadfb1f5042ad]
catch and discard exceptions thrown when sending a status response during an exception
-rw-r--r-- | paramiko/sftp_server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/paramiko/sftp_server.py b/paramiko/sftp_server.py index fefb963f..91328e24 100644 --- a/paramiko/sftp_server.py +++ b/paramiko/sftp_server.py @@ -98,7 +98,10 @@ class SFTPServer (BaseSFTP, SubsystemHandler): self._log(DEBUG, 'Exception in server processing: ' + str(e)) self._log(DEBUG, util.tb_strings()) # send some kind of failure message, at least - self._send_status(request_number, SFTP_FAILURE) + try: + self._send_status(request_number, SFTP_FAILURE) + except: + pass def finish_subsystem(self): self.server.session_ended() |