\ß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 ZddZdS ) N)Hub)capture_internal_exceptionsevent_from_exception)Integration)MYPY)Callable)Any)Type)
TracebackTypec 4 e Zd ZdZdZddZed ZdS )ExcepthookIntegration
excepthookFc d t |t st d|d || _ d S )NzInvalid value for always_run: z (must be type boolean))
isinstancebool
ValueError
always_run)selfr s /builddir/build/BUILD/imunify360-venv-2.6.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_excepthooksysr r r
setup_oncez ExcepthookIntegration.setup_once% s *#.99r NF)__name__
__module____qualname__
identifierr r staticmethodr r r r r
r
sM JJ% % % % : : \: : :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)typehandled)client_options mechanism)hint)r currentget_integrationr
_should_sendr clientr r options
capture_event) type_value tracebackhubintegrationr- eventr) old_excepthooks r sentry_sdk_excepthookz/_make_excepthook.