File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1649,14 +1649,17 @@ def execute_graphql(
16491649 branch_name (str, optional): Name of the branch on which the query will be executed. Defaults to None.
16501650 at (str, optional): Time when the query should be executed. Defaults to None.
16511651 timeout (int, optional): Timeout in second for the query. Defaults to None.
1652- raise_for_error (bool, optional): Deprecated, flag to indicate that we need to raise an exception if the response has some errors.
1653- Defaults to True.
1652+ raise_for_error (bool | None, optional): Deprecated. Controls only HTTP status handling.
1653+ - None (default) or True: HTTP errors raise via `resp.raise_for_status()`.
1654+ - False: HTTP errors are not automatically raised.
1655+ GraphQL errors always raise `GraphQLError`.
1656+ Defaults to None.
1657+
16541658 Raises:
1655- GraphQLError: When an error occurs during the execution of the GraphQL query or mutation .
1659+ GraphQLError: When the GraphQL response contains errors .
16561660
16571661 Returns:
1658- dict: The result of the GraphQL query or mutation.
1659- """
1662+ dict: The GraphQL data payload (`response["data"]`).
16601663 if raise_for_error is not None:
16611664 warnings.warn(
16621665 "Using `raise_for_error` is deprecated, use `try/except` to handle errors.",
You can’t perform that action at this time.
0 commit comments