`N 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 ZddZdS ) N)Hub)capture_internal_exceptionsevent_from_exception)Integration) TYPE_CHECKING)Callable)Any)Type)Optional) 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 t/builddir/build/BUILD/cloudlinux-venv-1.0.10/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&