Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 6 additions & 3 deletions sentry_sdk/integrations/trytond.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
from sentry_sdk.integrations import Integration
from sentry_sdk.integrations.wsgi import SentryWsgiMiddleware
from sentry_sdk.utils import ensure_integration_enabled, event_from_exception
from sentry_sdk.integrations import DidNotEnable

from trytond.exceptions import TrytonException # type: ignore
from trytond.wsgi import app # type: ignore

try:
from trytond.exceptions import TrytonException # type: ignore
from trytond.wsgi import app # type: ignore
except ImportError:
raise DidNotEnable("Trytond is not installed.")

# TODO: trytond-worker, trytond-cron and trytond-admin intergations

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 @@ -35,7 +35,6 @@ def pytest_generate_tests(metafunc):
"opentelemetry",
"pure_eval",
"ray",
"trytond",
"typer",
},
)
Expand Down
Loading