Skip to content

Commit e016263

Browse files
committed
adjust import
1 parent 189af10 commit e016263

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

quixstreams/sources/community/influxdb3/influxdb3.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
from functools import wraps
66
from typing import Callable, Optional, Union
77

8-
from influxdb_client_3 import InfluxDBClient3
8+
try:
9+
from influxdb_client_3 import InfluxDBClient3
10+
except ImportError as exc:
11+
raise ImportError(
12+
'Package "influxdb3-python" is missing: '
13+
"run pip install quixstreams[influxdb3] to fix it"
14+
) from exc
915

1016
from quixstreams.models.topics import Topic
1117
from quixstreams.sources import (

0 commit comments

Comments
 (0)