Skip to content

Commit 71c56eb

Browse files
feat: improve error handling
1 parent 3acc8af commit 71c56eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_influxdb_client_3_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import pyarrow
99
import pytest
10-
from pyarrow._flight import FlightError
10+
from influxdb_client_3.influxdb_client_error import InfluxdbClientQueryError
1111

1212
from influxdb_client_3 import InfluxDBClient3, InfluxDBError, write_client_options, WriteOptions
1313
from tests.util import asyncio_run, lp_to_py_object
@@ -225,7 +225,7 @@ def test_queries_w_bad_cert(self):
225225
query = "SELECT table_name FROM information_schema.tables"
226226
client.query(query, mode="")
227227
assert False, "query should throw SSL_ERROR"
228-
except FlightError as fe:
228+
except InfluxdbClientQueryError as fe:
229229
assert str(fe).__contains__('SSL_ERROR_SSL')
230230
finally:
231231
self.remove_test_cert(cert_file)

0 commit comments

Comments
 (0)