File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 22from sentry_sdk .integrations import Integration
33from sentry_sdk .integrations .wsgi import SentryWsgiMiddleware
44from sentry_sdk .utils import ensure_integration_enabled , event_from_exception
5+ from sentry_sdk .integrations import DidNotEnable
56
6- from trytond .exceptions import TrytonException # type: ignore
7- from trytond .wsgi import app # type: ignore
8-
7+ try :
8+ from trytond .exceptions import TrytonException # type: ignore
9+ from trytond .wsgi import app # type: ignore
10+ except ImportError :
11+ raise DidNotEnable ("Trytond is not installed." )
912
1013# TODO: trytond-worker, trytond-cron and trytond-admin intergations
1114
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ def pytest_generate_tests(metafunc):
3535 "opentelemetry" ,
3636 "pure_eval" ,
3737 "ray" ,
38- "trytond" ,
3938 "typer" ,
4039 },
4140 )
You can’t perform that action at this time.
0 commit comments