PATH:
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
B T a� � @ sl d dl Zd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z erTd dlmZ G dd� dej j�ZdS )� N)�MYPY)�TrytonException)�app)�Anyc @ s$ e Zd ZdZdd� Zedd� �ZdS )�TrytondWSGIIntegrationZtrytond_wsgic C s d S )N� )�selfr r �P/opt/alt/python37/lib/python3.7/site-packages/sentry_sdk/integrations/trytond.py�__init__ s zTrytondWSGIIntegration.__init__c sH t jj�tj�t_dd� � ttd�r8tj� fdd��} ntj� � � d S )Nc S s` t jjj}|�t�d krd S t| t�r*d S |j}t j j | |jddd�d�\}}|j||d� d S )NZtrytondF)�typeZhandled)Zclient_optionsZ mechanism)�hint) � sentry_sdk�hubZHub�currentZget_integrationr � isinstancer �client�utilsZevent_from_exception�optionsZ capture_event)�er r �eventr r r r � error_handler s z8TrytondWSGIIntegration.setup_once.<locals>.error_handlerr c s � |� d S )Nr )r Zrequestr )r r r �_2 s z,TrytondWSGIIntegration.setup_once.<locals>._) r �integrationsZwsgiZSentryWsgiMiddlewarer Zwsgi_app�hasattrr Zerror_handlers�append)r r )r r � setup_once s z!TrytondWSGIIntegration.setup_onceN)�__name__� __module__�__qualname__� identifierr �staticmethodr r r r r r s r )Zsentry_sdk.hubr Zsentry_sdk.utilsZsentry_sdk.integrationsZsentry_sdk.integrations.wsgiZsentry_sdk._typesr Ztrytond.exceptionsr Ztrytond.wsgir �typingr r ZIntegrationr r r r r �<module> s
[-] redis.cpython-37.opt-1.pyc
[edit]
[-] chalice.cpython-37.opt-1.pyc
[edit]
[-] sanic.cpython-37.opt-1.pyc
[edit]
[-] beam.cpython-37.opt-1.pyc
[edit]
[-] falcon.cpython-37.pyc
[edit]
[-] logging.cpython-37.opt-1.pyc
[edit]
[-] tornado.cpython-37.opt-1.pyc
[edit]
[-] flask.cpython-37.opt-1.pyc
[edit]
[-] threading.cpython-37.opt-1.pyc
[edit]
[-] trytond.cpython-37.pyc
[edit]
[-] _wsgi_common.cpython-37.pyc
[edit]
[-] asgi.cpython-37.pyc
[edit]
[-] logging.cpython-37.pyc
[edit]
[-] gcp.cpython-37.opt-1.pyc
[edit]
[-] gcp.cpython-37.pyc
[edit]
[-] serverless.cpython-37.pyc
[edit]
[-] sanic.cpython-37.pyc
[edit]
[-] pyramid.cpython-37.pyc
[edit]
[-] httpx.cpython-37.opt-1.pyc
[edit]
[-] __init__.cpython-37.pyc
[edit]
[-] excepthook.cpython-37.opt-1.pyc
[edit]
[-] atexit.cpython-37.opt-1.pyc
[edit]
[-] asgi.cpython-37.opt-1.pyc
[edit]
[-] aiohttp.cpython-37.opt-1.pyc
[edit]
[-] pyramid.cpython-37.opt-1.pyc
[edit]
[-] celery.cpython-37.pyc
[edit]
[-] executing.cpython-37.opt-1.pyc
[edit]
[-] trytond.cpython-37.opt-1.pyc
[edit]
[-] excepthook.cpython-37.pyc
[edit]
[-] sqlalchemy.cpython-37.pyc
[edit]
[-] flask.cpython-37.pyc
[edit]
[-] pure_eval.cpython-37.opt-1.pyc
[edit]
[-] stdlib.cpython-37.opt-1.pyc
[edit]
[-] chalice.cpython-37.pyc
[edit]
[-] atexit.cpython-37.pyc
[edit]
[-] tornado.cpython-37.pyc
[edit]
[-] dedupe.cpython-37.opt-1.pyc
[edit]
[-] aiohttp.cpython-37.pyc
[edit]
[-] redis.cpython-37.pyc
[edit]
[-] gnu_backtrace.cpython-37.pyc
[edit]
[-] celery.cpython-37.opt-1.pyc
[edit]
[-] serverless.cpython-37.opt-1.pyc
[edit]
[-] threading.cpython-37.pyc
[edit]
[-] bottle.cpython-37.pyc
[edit]
[-] falcon.cpython-37.opt-1.pyc
[edit]
[-] bottle.cpython-37.opt-1.pyc
[edit]
[-] rq.cpython-37.pyc
[edit]
[-] pure_eval.cpython-37.pyc
[edit]
[-] gnu_backtrace.cpython-37.opt-1.pyc
[edit]
[-] beam.cpython-37.pyc
[edit]
[-] _wsgi_common.cpython-37.opt-1.pyc
[edit]
[-] rq.cpython-37.opt-1.pyc
[edit]
[-] executing.cpython-37.pyc
[edit]
[-] aws_lambda.cpython-37.opt-1.pyc
[edit]
[-] argv.cpython-37.pyc
[edit]
[-] boto3.cpython-37.pyc
[edit]
[-] modules.cpython-37.pyc
[edit]
[+]
..
[-] dedupe.cpython-37.pyc
[edit]
[-] wsgi.cpython-37.pyc
[edit]
[-] argv.cpython-37.opt-1.pyc
[edit]
[-] boto3.cpython-37.opt-1.pyc
[edit]
[-] __init__.cpython-37.opt-1.pyc
[edit]
[-] aws_lambda.cpython-37.pyc
[edit]
[-] modules.cpython-37.opt-1.pyc
[edit]
[-] httpx.cpython-37.pyc
[edit]
[-] stdlib.cpython-37.pyc
[edit]
[-] wsgi.cpython-37.opt-1.pyc
[edit]
[-] sqlalchemy.cpython-37.opt-1.pyc
[edit]