<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</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__Z
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   	