📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 00:05:36
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/integrations/__pycache__
🔄 Refresh
✏️
Editing: excepthook.cpython-38.pyc
Read Only
U ��\7 � @ sT d dl Z d dlmZ d dlmZmZ d dlmZ G dd� de�Z dd� Z d d � ZdS )� N)�Hub)�capture_internal_exceptions�event_from_exception)�Integrationc @ s e Zd ZdZedd� �ZdS )�ExcepthookIntegration� excepthookc C s t tj�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 � fdd�}|S )Nc sl t j}|�t�}|d k r`t� r`t� �6 t| ||f|jjddd�d�\}}|j ||d� W 5 Q R X � | ||�S )Nr F)�typeZhandled)Zclient_optionsZ mechanism)�hint) r �currentZget_integrationr �_should_sendr r Zclient�optionsZ capture_event)�exctype�value� tracebackZhubZintegration�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 td�rdS dS )NZps1FT)�hasattrr r r r r r ( s r )r Zsentry_sdk.hubr Zsentry_sdk.utilsr r Zsentry_sdk.integrationsr �Callabler r r r r r r �<module> s
💾 Save Changes
❌ Cancel