Fix the status_code

This commit is contained in:
Jon Michael Aanes 2025-04-23 22:20:02 +02:00
parent 04b3baaba2
commit 6db1cccaf8

View File

@ -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,
)