Commit 016a89ed authored by Juliana Oliveira's avatar Juliana Oliveira
Browse files

{tempfiles, utils.archive}: catches FileNotFoundError



FileNotFoundError is randomly found when spawning async processes

Signed-off-by: default avatarJuliana Oliveira <juliana.orod@gmail.com>
parent 498edb52
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -101,7 +101,10 @@ class ArchiveMember(File):
        if self._path is not None:
            self._path = None
        if self._temp_dir is not None:
            try:
                self._temp_dir.cleanup()
            except FileNotFoundError:
                pass
            self._temp_dir = None
        super().cleanup()

+2 −0
Original line number Diff line number Diff line
@@ -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)