We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2e134 commit fa7b1feCopy full SHA for fa7b1fe
sentry_sdk/integrations/typer.py
@@ -22,6 +22,7 @@
22
23
try:
24
import typer
25
+ from typer.main import except_hook
26
except ImportError:
27
raise DidNotEnable("Typer not installed")
28
@@ -31,7 +32,7 @@ class TyperIntegration(Integration):
31
32
33
@staticmethod
34
def setup_once() -> None:
- typer.main.except_hook = _make_excepthook(typer.main.except_hook) # type: ignore
35
+ typer.main.except_hook = _make_excepthook(except_hook) # type: ignore
36
37
38
def _make_excepthook(old_excepthook: "Excepthook") -> "Excepthook":
tests/test_shadowed_module.py
@@ -31,7 +31,6 @@ def pytest_generate_tests(metafunc):
- {
"litellm",
"ray",
- "typer",
},
)
0 commit comments