fixed http status message 202 not being accepted as successful post operation

pull/11/head
Langenfeld 2021-11-05 11:48:54 +01:00
rodzic 8f5f22842b
commit 13bfe16197
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -780,7 +780,7 @@ class Gitea:
request = self.requests.post(
self.__get_url(endpoint), headers=self.headers, data=json.dumps(data)
)
if request.status_code not in [200, 201]:
if request.status_code not in [200, 201, 202]:
if (
"already exists" in request.text
or "e-mail already in use" in request.text