Skip to content

Commit a2e3383

Browse files
committed
Fix import
1 parent 43332d2 commit a2e3383

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/launchdarkly.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
try:
77
import ldclient
8-
from ldclient.hook import Hook
8+
from ldclient.hook import Hook, Metadata
99

1010
if TYPE_CHECKING:
1111
from ldclient import LDClient
12-
from ldclient.hook import EvaluationSeriesContext, Metadata
12+
from ldclient.hook import EvaluationSeriesContext
1313
from ldclient.evaluation import EvaluationDetail
1414

1515
from sentry_sdk._types import Event, ExcInfo
@@ -24,7 +24,7 @@ def _get_ldclient():
2424
client = ldclient.get()
2525
except Exception as exc:
2626
sentry_sdk.capture_exception(exc)
27-
raise DidNotEnable("Failed to find LaunchDarkly client instance. " + str(exc))
27+
raise DidNotEnable("Error getting LaunchDarkly client. " + str(exc))
2828

2929
if client and client.is_initialized():
3030
return client

0 commit comments

Comments
 (0)