From 84e7d30605aa4d7ba5d31717e4a334814df32bff Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 22 Feb 2020 13:02:03 +0100 Subject: don't raise Exeption again just pass it --- src/artifact.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/artifact.py') diff --git a/src/artifact.py b/src/artifact.py index a358446..eff80cf 100644 --- a/src/artifact.py +++ b/src/artifact.py @@ -83,7 +83,7 @@ class GitArtifact(Artifact): run_cmd(["git", "fetch"], output_verbosity=1, cwd=self.repo) except CalledProcessError as e: print_error(f"Failed to update {self.name}") - raise e + raise worktree_cmd = ["git", "worktree", "add", location, checkout] print_debug("create new worktree. By running: ", worktree_cmd, @@ -92,7 +92,7 @@ class GitArtifact(Artifact): run_cmd(worktree_cmd, output_verbosity=1, cwd=self.repo) except CalledProcessError as e: print_error(f"Failed to provide {self.name}") - raise e + raise submodule_init_cmd = [ "git", "submodule", "update", "--init", "--recursive" -- cgit v1.2.3