Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion python_graphql_client/graphql_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def execute(
variables: dict = None,
operation_name: str = None,
headers: dict = {},
riase_for_status: bool = True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By chance did you mean?

Suggested change
riase_for_status: bool = True,
raise_for_status: bool = True,

**kwargs: Any,
):
"""Make synchronous request to graphQL server."""
Expand All @@ -50,8 +51,10 @@ def execute(
headers={**self.headers, **headers},
**{**self.options, **kwargs},
)

if riase_for_status:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if riase_for_status:
if raise_for_status:

result.raise_for_status()

result.raise_for_status()
return result.json()

async def execute_async(
Expand Down