diff options
-rw-r--r-- | make-sgpkg.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |