catch and discard exceptions thrown when sending a status response during an exception
This commit is contained in:
Robey Pointer 2006-06-26 23:07:03 -07:00
parent 79d239693a
commit be86d5474a
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ class SFTPServer (BaseSFTP, SubsystemHandler):
self._log(DEBUG, 'Exception in server processing: ' + str(e)) self._log(DEBUG, 'Exception in server processing: ' + str(e))
self._log(DEBUG, util.tb_strings()) self._log(DEBUG, util.tb_strings())
# send some kind of failure message, at least # 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): def finish_subsystem(self):
self.server.session_ended() self.server.session_ended()