From 6db1cccaf8dd734aff5e09bd44a47b8202a8c17a Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Wed, 23 Apr 2025 22:20:02 +0200 Subject: [PATCH] Fix the status_code --- aider_gitea/gitea_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider_gitea/gitea_client.py b/aider_gitea/gitea_client.py index 751b2ea..4133096 100644 --- a/aider_gitea/gitea_client.py +++ b/aider_gitea/gitea_client.py @@ -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, )