
    fih	                         d dl Z d dlZd dlmZmZ d dlmZ d dlmZ er7d dlm	Z	 d dlm
Z
 d dlmZ d dlmZ d d	lmZ e	ee         eee         ge
f         Z G d
 de          Zd ZddZdS )    N)capture_internal_exceptionsevent_from_exception)Integration)TYPE_CHECKING)Callable)Any)Type)Optional)TracebackTypec                   4    e Zd ZdZdZddZed             ZdS )ExcepthookIntegration
excepthookFc                 d    t          |t                    st          d|d          || _        d S )NzInvalid value for always_run: z (must be type boolean))
isinstancebool
ValueError
always_run)selfr   s     r/var/www/html/Pagina-Ingenieria-Requisitos/venv/lib/python3.11/site-packages/sentry_sdk/integrations/excepthook.py__init__zExcepthookIntegration.__init__   sC     *d++ 	*::    %    c                  L    t          t          j                  t          _        d S )N)_make_excepthooksysr    r   r   
setup_oncez ExcepthookIntegration.setup_once)   s     *#.99r   NF)__name__
__module____qualname__
identifierr   r   staticmethodr   r   r   r   r   r      sM        JJ% % % % : : \: : :r   r   c                       fd}|S )Nc                    t          j                                        t                    }| | ||          S t	          |j                  rmt                      5  t          | ||ft          j                    j        ddd          \  }}t          j	        ||           d d d            n# 1 swxY w Y    | ||          S )Nr   F)typehandled)client_options	mechanism)hint)

sentry_sdk
get_clientget_integrationr   _should_sendr   r   r   optionscapture_event)type_value	tracebackintegrationeventr)   old_excepthooks         r   sentry_sdk_excepthookz/_make_excepthook.<locals>.sentry_sdk_excepthook1   s    +--==>STT
 !>%	:::.// 	;,.. ; ;2E9-#-#8#:#:#B'3FF  t
 (T::::; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ~eUI666s   AB22B69B6r   )r5   r6   s   ` r   r   r   /   s$    7 7 7 7 7* ! r   Fc                 <    | rdS t          t          d          rdS dS )NTps1F)hasattrr   )r   s    r   r-   r-   I   s-     tsE  u4r   r   )r   r*   sentry_sdk.utilsr   r   sentry_sdk.integrationsr   typingr   r   r   r	   r
   typesr   BaseException
Excepthookr   r   r-   r   r   r   <module>r@      sG   



            0 / / / / /             ######	m	mXm-DE	J: : : : :K : : :*! ! !4
 
 
 
 
 
r   