관리-도구
편집 파일: excepthook.cpython-311.pyc
� �\ßbXT� �� � d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z e r+d dl mZ d dl mZ d dl m Z d d lmZ ee e eegef Z G d � de� � Zd� Zdd�ZdS )� N)�Hub)�capture_internal_exceptions�event_from_exception)�Integration)�MYPY)�Callable)�Any)�Type)� 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 ��/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/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% s � � *�#�.�9�9����r N�F)�__name__� __module__�__qualname__� identifierr r �staticmethodr r r r r r sM � � � � � ��J��J�%� %� %� %� �:� :� �\�:� :� :r r c � � � � fd�}|S )Nc �^ �� t j }|� t � � }|�xt |j � � rd|j }t � � 5 t | ||f|j ddd��� � \ }}|� ||�� � d d d � � n# 1 swxY w Y �| ||� � S )Nr F)�type�handled)�client_options� mechanism)�hint)r �current�get_integrationr �_should_sendr �clientr r �options� capture_event) �type_�value� traceback�hub�integrationr- �eventr) �old_excepthooks �r �sentry_sdk_excepthookz/_make_excepthook.<locals>.sentry_sdk_excepthook- s� �� ��k���)�)�*?�@�@���"�|�K�4J�'K�'K�"��Z�F�,�.�.� 4� 4�2��E�9�-�#)�>�'3��F�F�� � ���t� �!�!�%�d�!�3�3�3� 4� 4� 4� 4� 4� 4� 4� 4� 4� 4� 4���� 4� 4� 4� 4� �~�e�U�I�6�6�6s �8B�B�Br )r6 r7 s ` r r r + s$ �� �7� 7� 7� 7� 7�&