Fix the status_code
This commit is contained in:
parent
04b3baaba2
commit
6db1cccaf8
|
@ -167,7 +167,7 @@ class GiteaClient:
|
|||
|
||||
response = self.session.post(url, json=json_data)
|
||||
# If a pull request for this head/base already exists, return it instead of crashing
|
||||
if response.status_code == 422:
|
||||
if response.status_code == 409:
|
||||
logger.warning(
|
||||
'Pull request already exists for head %s and base %s', head, base,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user