
    fi                     |    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rd dlm	Z	 d dlm
Z
  G d de          Zd	 ZdS )
    N)capture_internal_exceptionsevent_from_exception)Integration)TYPE_CHECKING)Callable)Anyc                   (    e Zd ZdZed             ZdS )UnraisablehookIntegrationunraisablehookc                  L    t          t          j                  t          _        d S )N)_make_unraisablesysr        v/var/www/html/Pagina-Ingenieria-Requisitos/venv/lib/python3.11/site-packages/sentry_sdk/integrations/unraisablehook.py
setup_oncez$UnraisablehookIntegration.setup_once   s     .c.@AAr   N)__name__
__module____qualname__
identifierstaticmethodr   r   r   r   r
   r
      s7        !JB B \B B Br   r
   c                       fd}|S )Nc                    t          j                                        t                    }| |           S | j        r| j        r|t                      5  t          | j        | j        | j        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
   	exc_valueexc_tracebackr   r   exc_typeoptionscapture_event)
unraisableintegrationeventr   old_unraisablehooks       r   sentry_sdk_unraisablehookz3_make_unraisable.<locals>.sentry_sdk_unraisablehook   s%    +--==>WXX
 %%j111 	;J$< 	;,.. 
; 
;2"+","0
 $.#8#:#:#B'7EJJ  t (T::::
; 
; 
; 
; 
; 
; 
; 
; 
; 
; 
; 
; 
; 
; 
; "!*---s   AB99B= B=r   )r*   r+   s   ` r   r   r      s$    . . . . .2 %$r   )r   r   sentry_sdk.utilsr   r   sentry_sdk.integrationsr   typingr   r   r   r
   r   r   r   r   <module>r/      s    



            0 / / / / /             B B B B B B B B% % % % %r   