Skip to content

Commit

Permalink
Catch MissingDependencyException in telemetry and check for sentry_sdk (
Browse files Browse the repository at this point in the history
#1344)

* Catch MissingDependencyException in telemetry and check for sentry_sdk
  • Loading branch information
sultaniman authored May 12, 2024
1 parent 02f5d52 commit e4d3647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlt/common/runtime/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Any, Callable

from dlt.common.configuration.specs import RunConfiguration
from dlt.common.exceptions import MissingDependencyException
from dlt.common.typing import TFun
from dlt.common.configuration import resolve_configuration
from dlt.common.runtime.anon_tracker import (
Expand Down Expand Up @@ -50,7 +51,7 @@ def stop_telemetry() -> None:
from dlt.common.runtime.sentry import disable_sentry

disable_sentry()
except ImportError:
except (MissingDependencyException, ImportError):
pass

disable_anon_tracker()
Expand Down

0 comments on commit e4d3647

Please sign in to comment.