We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58577bd commit 226a23dCopy full SHA for 226a23d
graphdatascience/query_runner/gds_arrow_client.py
@@ -865,12 +865,8 @@ def _decode_pyarrow_array(array: Array) -> Array:
865
866
@staticmethod
867
def handle_flight_error(e: Exception) -> None:
868
- if (
869
- isinstance(e, flight.FlightServerError)
870
- or isinstance(e, flight.FlightInternalError)
871
- or isinstance(e, ClientError)
872
- ):
873
- original_message = e.args[0]
+ if isinstance(e, flight.FlightServerError | flight.FlightInternalError | ClientError):
+ original_message = e.args[0] if len(e.args) > 0 else e.message
874
improved_message = original_message.replace(
875
"Flight RPC failed with message: org.apache.arrow.flight.FlightRuntimeException: ", ""
876
)
0 commit comments