Commit 23bcb26b authored by Adrian DC's avatar Adrian DC
Browse files

fix: finish #137: delete temporary files only if they still exist

parent 0c2395d1
Loading
Loading
Loading
Loading
+3 −1
Changes for gitlabci_local/types/files.py: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -19,7 +19,9 @@ class Files:

        # Delete all temps
        for temp in Files.temps:
            Path(temp.name).unlink()
            temp_file = Path(temp.name)
            if temp_file.exists():
                temp_file.unlink()

        # Reset temps
        Files.temps = []