bgddlZddlZddlZddlZddlmZddlmZddl m Z erddl m Z Gddej jZdS)N) TYPE_CHECKING)TrytonException)app)Anyc.eZdZdZdZedZdS)TrytondWSGIIntegration trytond_wsgicdSN)selfs p/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/sentry_sdk/integrations/trytond.py__init__zTrytondWSGIIntegration.__init__s ctjjtjt_dt tdrtjfd}dStj dS)Nc.tjjj}|t dSt |trdS|j}tj ||j ddd\}}| ||dS)NtrytondF)typehandled)client_options mechanism)hint) sentry_sdkhubHubcurrentget_integrationr isinstancerclientutilsevent_from_exceptionoptions capture_event)erreventrs r error_handlerz8TrytondWSGIIntegration.setup_once..error_handlers.$,C""#9::BA// 4(.CC#)>'0UCCD t !!%d!33333rr&c|dSr r )rrequestr$r&s r_z,TrytondWSGIIntegration.setup_once.._1s a     r) r integrationswsgiSentryWsgiMiddlewarerwsgi_apphasattrr&error_handlersappend)r)r&s @r setup_oncez!TrytondWSGIIntegration.setup_onces!.3HHVV  4 4 4( 3 ( ( 5   ! ! ! !  ! ! !   % %m 4 4 4 4 4rN)__name__ __module__ __qualname__ identifierr staticmethodr1r rrrrsCJ   55\555rr)sentry_sdk.hubrsentry_sdk.utilssentry_sdk.integrationssentry_sdk.integrations.wsgisentry_sdk._typesrtrytond.exceptionsr trytond.wsgirtypingrr* Integrationrr rrr@s####++++++...... %5%5%5%5%5Z4@%5%5%5%5%5r