[diffoscope] 05/10: tempfiles: catches FileNotFoundError for DIR

Juliana Oliveira jwnx-guest at moszumanska.debian.org
Sun Jan 14 20:04:35 UTC 2018


This is an automated email from the git hooks/post-receive script.

jwnx-guest pushed a commit to branch jwnx_parallel_diffoscope
in repository diffoscope.

commit 4a47dc405bf620f82d6bca573d562d51e0debe01
Author: Juliana Oliveira <juliana.orod at gmail.com>
Date:   Sun Jan 14 16:44:32 2018 -0200

    tempfiles: catches FileNotFoundError for DIR
    
    Signed-off-by: Juliana Oliveira <juliana.orod at gmail.com>
---
 diffoscope/tempfiles.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/diffoscope/tempfiles.py b/diffoscope/tempfiles.py
index 833ac16..50fa825 100644
--- a/diffoscope/tempfiles.py
+++ b/diffoscope/tempfiles.py
@@ -60,5 +60,7 @@ def clean_all_temp_files():
     for x in _DIRS:
         try:
             x.cleanup()
+        except FileNotFoundError:
+            pass
         except:
             logger.exception("Unable to delete %s", x)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git



More information about the Reproducible-commits mailing list