gitlab: skip another race condition in project creation
This commit is contained in:
parent
23f3969e75
commit
cae5a8f785
|
@ -90,7 +90,10 @@ class GitLab(object):
|
|||
r = self.s.post(f'{self.s.api}/projects', data=data)
|
||||
if r.status_code == 201:
|
||||
return r.json()
|
||||
if r.status_code == 400 and 'still being deleted' in r.text:
|
||||
if r.status_code == 400 and (
|
||||
'still being deleted' in r.text or
|
||||
'has already been taken' in r.text
|
||||
):
|
||||
raise GitLab.DeletionInProgress()
|
||||
r.raise_for_status()
|
||||
|
||||
|
|
Loading…
Reference in New Issue