Is it correct to call that function in some exceptions ? Is that process correct ? Is it better to process each exceptions ?
def close_all():
        try:
                ftp.close()
        except:
                pass
        try:
                tar.close()
        except:
                pass
        try:
                savelist.close()
        except:
                pass
        try:
                os.remove(tarname)
        except:
                pass
        exit()
Thanks in advance.
 
     
    