Skip to content

Allow status codes, other than 200 #46

@Blusten23

Description

@Blusten23

Is your feature request related to a problem? Please describe.
Currently result.raise_for_status() raises the error but I would like to deal with status codes later on rather than to get an exception from the client. The issue is described here: graphql-python/gql#40

Describe the solution you'd like
Add a flag, raise_for_status=True/False in client.execute().

Describe alternatives you've considered
Comment out the result.raise_for_status() line

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions