graphql-python/gql

Is there a reason TransportQueryError doesn't extend TransportError?

helderco opened this issue · 2 comments

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?

No, that's not by design, it's a bug.
Thank you for reporting this!

Fixed in release 3.5.0b2.