diff --git a/marge/batch_job.py b/marge/batch_job.py index e1b90cd3..a4b34798 100644 --- a/marge/batch_job.py +++ b/marge/batch_job.py @@ -271,7 +271,7 @@ def execute(self): # We don't need anymore. Remove it now in case another # merge request is using the same branch name in a different project. self._repo.remove_branch(merge_request.source_branch) - except git.GitError: + except (git.GitError, CannotMerge): log.warning('Skipping MR !%s, got conflicts while rebasing', merge_request.iid) continue else: