We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb42b7 commit 3a2c007Copy full SHA for 3a2c007
aiogithubapi/client.py
@@ -185,7 +185,9 @@ async def async_call_api(
185
if message is not None:
186
if exception := MESSAGE_EXCEPTIONS.get(message):
187
raise exception(message)
188
- raise GitHubException(message)
+ # For a 201 Created response, we assume the operation was successful and ignore any "message" field.
189
+ if not response.status == HttpStatusCode.CREATED:
190
+ raise GitHubException(message)
191
192
if endpoint == "/graphql" and response.data.get("errors", []):
193
raise GitHubGraphQLException(
0 commit comments