
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
U
    „á§\7  ã                   @   sT   d dl Z d dlmZ d dlmZmZ d dlmZ G dd„ deƒZ	dd„ Z
d	d
„ ZdS )é    N)ÚHub)Úcapture_internal_exceptionsÚevent_from_exception)ÚIntegrationc                   @   s   e Zd ZdZedd„ ƒZdS )ÚExcepthookIntegrationÚ
excepthookc                   C   s   t tjƒt_d S )N)Ú_make_excepthookÚsysr   © r
   r
   úS/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/integrations/excepthook.pyÚ
setup_once   s    z ExcepthookIntegration.setup_onceN)Ú__name__Ú
__module__Ú__qualname__Ú
identifierÚstaticmethodr   r
   r
   r
   r   r      s   r   c                    s   ‡ fdd„}|S )Nc              	      sl   t j}| t¡}|d k	r`tƒ r`tƒ �6 t| ||f|jjdddœd�\}}|j	||d� W 5 Q R X ˆ | ||ƒS )Nr   F)ÚtypeZhandled)Zclient_optionsZ	mechanism)Úhint)
r   ÚcurrentZget_integrationr   Ú_should_sendr   r   ZclientÚoptionsZcapture_event)ÚexctypeÚvalueÚ	tracebackZhubZintegrationÚeventr   ©Úold_excepthookr
   r   Úsentry_sdk_excepthook   s    
ý
z/_make_excepthook.<locals>.sentry_sdk_excepthookr
   )r   r   r
   r   r   r      s    r   c                   C   s   t tdƒrdS dS )NZps1FT)Úhasattrr	   r
   r
   r
   r   r   (   s    
r   )r	   Zsentry_sdk.hubr   Zsentry_sdk.utilsr   r   Zsentry_sdk.integrationsr   ÚCallabler   r   r   r
   r
   r
   r   Ú<module>   s   	