Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sentry_sdk/integrations/typer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

try:
import typer
from typer.main import except_hook
except ImportError:
raise DidNotEnable("Typer not installed")

Expand All @@ -31,7 +32,7 @@ class TyperIntegration(Integration):

@staticmethod
def setup_once() -> None:
typer.main.except_hook = _make_excepthook(typer.main.except_hook) # type: ignore
typer.main.except_hook = _make_excepthook(except_hook) # type: ignore


def _make_excepthook(old_excepthook: "Excepthook") -> "Excepthook":
Expand Down
1 change: 0 additions & 1 deletion tests/test_shadowed_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def pytest_generate_tests(metafunc):
"pure_eval",
"ray",
"trytond",
"typer",
},
)

Expand Down
Loading