관리-도구
편집 파일: excepthook.cpython-311.pyc
� �܋f� � �� � d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z e r7d dl mZ d dl mZ d dl m Z d d l mZ d d lmZ ee e eee gef Z G d� de� � Zd � Zdd�ZdS )� N)�Hub)�capture_internal_exceptions�event_from_exception)�Integration)� TYPE_CHECKING)�Callable)�Any)�Type)�Optional)� TracebackTypec �4 � e Zd ZdZdZdd�Zed� � � ZdS )�ExcepthookIntegration� excepthookFc �d � t |t � � st d|�d�� � �|| _ d S )NzInvalid value for always_run: z (must be type boolean))� isinstance�bool� ValueError� always_run)�selfr s �Y/opt/cloudlinux/venv/lib64/python3.11/site-packages/sentry_sdk/integrations/excepthook.py�__init__zExcepthookIntegration.__init__ sC � � �*�d�+�+� ��*��:�:� �� � � %����� c �L � t t j � � t _ d S )N)�_make_excepthook�sysr � r r � setup_oncez ExcepthookIntegration.setup_once&