From a632da0b9823751e9ff0bddd8d88a47e5178e7d4 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 31 Mar 2009 18:49:49 +0200 Subject: ignore unlink errors --- make-sgpkg.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make-sgpkg.py b/make-sgpkg.py index 68e1761..e74c332 100644 --- a/make-sgpkg.py +++ b/make-sgpkg.py @@ -204,7 +204,11 @@ def main(argv): if verbose: print "Cleaning up tempdir at %s" % tmpdir shutil.rmtree(tmpdir) - os.unlink(os.path.expanduser(properties)) + try: + os.stat(os.path.expanduser(properties)) + os.unlink(os.path.expanduser(properties)) + except OSError: + pass # ignore missing file or unlink error return ret -- cgit v1.2.3