Skip to content

Commit

Permalink
handle not installed import error
Browse files Browse the repository at this point in the history
  • Loading branch information
aliu39 committed Dec 22, 2024
1 parent 4ee3667 commit 38f279b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sentry_sdk/integrations/unleash.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

import sentry_sdk
from sentry_sdk.flag_utils import flag_error_processor
from sentry_sdk.integrations import Integration
from sentry_sdk.integrations import Integration, DidNotEnable

from UnleashClient import UnleashClient
try:
from UnleashClient import UnleashClient
except ImportError:
raise DidNotEnable("UnleashClient is not installed")

if TYPE_CHECKING:
from typing import Any
Expand Down

0 comments on commit 38f279b

Please sign in to comment.