[diffoscope] 09/10: comparators: utils: archive: catches FileNotFoundError

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 e252cbdd7f8a54b41c2cfdb2786f45749f702f29
Author: Juliana Oliveira <juliana.orod at gmail.com>
Date:   Sun Jan 14 17:42:23 2018 -0200

    comparators: utils: archive: catches FileNotFoundError
    
    Signed-off-by: Juliana Oliveira <juliana.orod at gmail.com>
---
 diffoscope/comparators/utils/archive.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/diffoscope/comparators/utils/archive.py b/diffoscope/comparators/utils/archive.py
index 510dff0..7e4828f 100644
--- a/diffoscope/comparators/utils/archive.py
+++ b/diffoscope/comparators/utils/archive.py
@@ -101,7 +101,10 @@ class ArchiveMember(File):
         if self._path is not None:
             self._path = None
         if self._temp_dir is not None:
-            self._temp_dir.cleanup()
+            try:
+                self._temp_dir.cleanup()
+            except FileNotFoundError:
+                pass
             self._temp_dir = None
         super().cleanup()
 

-- 
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