From 2d4a8cb7fd4c6b169c2791aeb1dd1a70b74d3fde Mon Sep 17 00:00:00 2001 From: jorgormo Date: Thu, 3 Jul 2008 15:44:58 +0200 Subject: [PATCH] Always remove tmp file in melon-watch-dir --- melon-watch-dir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melon-watch-dir.py b/melon-watch-dir.py index 2063ab0..8ce1a16 100755 --- a/melon-watch-dir.py +++ b/melon-watch-dir.py @@ -46,7 +46,7 @@ try: outfile.write("!!%s&%s&%s&%s&%d!!\n"%(name, user, hostname, dirname+" "+str(count)+"/"+str(total), (100*count)/total)) outfile.flush() outfile.close() -except: +finally: if "NamedTemporaryFile" not in dir(tempfile): os.remove(outfilename) -- 2.34.1