Skip to content

Commit

Permalink
handle CannotMerge which could be raised from self.update_merge_reque…
Browse files Browse the repository at this point in the history
…st (#275)
  • Loading branch information
tclh123 authored Nov 1, 2020
1 parent 5479a99 commit fc2fe77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marge/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def execute(self):
# We don't need <source_branch> 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:
Expand Down

0 comments on commit fc2fe77

Please sign in to comment.