catch and discard exceptions thrown when sending a status response during an exception
This commit is contained in:
parent
79d239693a
commit
be86d5474a
|
@ -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
|
||||
try:
|
||||
self._send_status(request_number, SFTP_FAILURE)
|
||||
except:
|
||||
pass
|
||||
|
||||
def finish_subsystem(self):
|
||||
self.server.session_ended()
|
||||
|
|
Loading…
Reference in New Issue