diff --git a/tsshbatch.py b/tsshbatch.py index 4bfb642..c8682c5 100755 --- a/tsshbatch.py +++ b/tsshbatch.py @@ -20,7 +20,7 @@ CMDINCL = PROGENV + "CMDS" HOSTINCL = PROGENV + "HOSTS" -CVSID = "$Id: tsshbatch.py,v 1.178 2014/03/28 20:16:39 tundra Exp $" +CVSID = "$Id: tsshbatch.py,v 1.179 2014/03/28 20:24:54 tundra Exp $" VERSION = CVSID.split()[2] CPRT = "(c)" DATE = "2011-2014" @@ -291,7 +291,14 @@ ssh.close() except: - ErrorExit(eFXERROR % (sys.exc_info()[1])) + PrintReport([host, eFXERROR % (sys.exc_info()[1])]) + + try: + sftp.close() + ssh.close() + + except: + pass # End of 'HostFileTransfer()'