1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-18 20:50:10 +01:00

Only ignore opening a second MR

This commit is contained in:
Jochen Sprickerhof 2021-12-30 19:42:18 +01:00 committed by Hans-Christoph Steiner
parent 3720afbe5b
commit b73663967b

View File

@ -139,4 +139,7 @@ if git_repo.is_dirty() and ('gradlew-fdroid' in modified or 'makebuildserver' in
}) })
mr.save() mr.save()
except gitlab.exceptions.GitlabCreateError as e: except gitlab.exceptions.GitlabCreateError as e:
if e.response_code == 409: # Another open merge request already exists for this source branch
print(e.error_message) print(e.error_message)
else:
raise e