Always remove tmp file in melon-watch-dir
authorjorgormo <jorgormo@node001.(none)>
Thu, 3 Jul 2008 13:44:58 +0000 (15:44 +0200)
committerjorgormo <jorgormo@node001.(none)>
Thu, 3 Jul 2008 13:44:58 +0000 (15:44 +0200)
melon-watch-dir.py

index 2063ab09dd58f726b671be5683ed246fdc6044a0..8ce1a16bba0ca7f69ed48594b69f8153fd1d9f5e 100755 (executable)
@@ -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)