Skip to content

Commit 506ce61

Browse files
committed
fixed lint errors
1 parent 34c05a1 commit 506ce61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/couchbase_haystack/telemetry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import platform
1010
import threading
1111
from contextlib import suppress
12-
from importlib import import_module
1312
from importlib.metadata import version
1413

1514
SCARF_ENDPOINT_URL = "https://couchbase.gateway.scarf.sh/couchbase-haystack"
@@ -33,7 +32,8 @@ def _send_telemetry() -> None:
3332
_telemetry_sent.set()
3433

3534
with suppress(Exception):
36-
event_logger = import_module("scarf").ScarfEventLogger(
35+
from scarf import ScarfEventLogger # noqa: PLC0415
36+
event_logger = ScarfEventLogger(
3737
endpoint_url=SCARF_ENDPOINT_URL,
3838
timeout=2.0,
3939
)

0 commit comments

Comments
 (0)