Skip to content

Is there a reason TransportQueryError doesn't extend TransportError? #391

Closed
@helderco

Description

@helderco

I expected all exceptions to be captured by gql.exceptions.TransportError:

from gql.exceptions import TransportError

try:
    ...
except TransportError as e:
    ...

But TransportQueryError extends from Exception:

class TransportQueryError(Exception):

Is this by design?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugAn issue or pull request relating to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions