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

Juliana Oliveira jwnx-guest at moszumanska.debian.org
Mon Jan 29 03:43:23 CET 2018


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

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

commit fcbc0976229990aff3bc921960be7ebfe5c12c6d
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 diffoscope mailing list