From b73663967bd0c24da555be0165c541a6d7fe10ff Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 30 Dec 2021 19:42:18 +0100 Subject: [PATCH] Only ignore opening a second MR --- tests/gradle-release-checksums.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/gradle-release-checksums.py b/tests/gradle-release-checksums.py index ba787d81..1fca803c 100755 --- a/tests/gradle-release-checksums.py +++ b/tests/gradle-release-checksums.py @@ -139,4 +139,7 @@ if git_repo.is_dirty() and ('gradlew-fdroid' in modified or 'makebuildserver' in }) mr.save() except gitlab.exceptions.GitlabCreateError as e: - print(e.error_message) + if e.response_code == 409: # Another open merge request already exists for this source branch + print(e.error_message) + else: + raise e