Is there a reason TransportQueryError doesn't extend TransportError?
helderco opened this issue · 2 comments
helderco commented
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
:
gql/gql/transport/exceptions.py
Line 30 in 2827d88
Is this by design?
leszekhanusz commented
No, that's not by design, it's a bug.
Thank you for reporting this!
leszekhanusz commented
Fixed in release 3.5.0b2.