
    ghh	                         S SK r S SKrS SKJrJr  S SKJr  S SKJr  \(       a.  S SKJ	r	  S SKJ
r
  S SKJr  S SKJr  S S	KJr  \	\\   \\\   /\
4   r " S
 S\5      rS rSS jrg)    N)capture_internal_exceptionsevent_from_exception)Integration)TYPE_CHECKING)Callable)Any)Type)Optional)TracebackTypec                   6    \ rS rSrSrSrSS jr\S 5       rSr	g)	ExcepthookIntegration   
excepthookFc                 Z    [        U[        5      (       d  [        SU< S35      eXl        g )NzInvalid value for always_run: z (must be type boolean))
isinstancebool
ValueError
always_run)selfr   s     e/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/sentry_sdk/integrations/excepthook.py__init__ExcepthookIntegration.__init__   s-     *d++   %    c                  H    [        [        R                  5      [        l        g )N)_make_excepthooksysr    r   r   
setup_once ExcepthookIntegration.setup_once)   s     *#..9r   r   NF)
__name__
__module____qualname____firstlineno__
identifierr   r   staticmethodr   __static_attributes__r   r   r   r   r      s%    JJ% : :r   r   c                    ^  U 4S jnU$ )Nc                   > [         R                  " 5       R                  [        5      nUc	  T" XU5      $ [	        UR
                  5      (       aV  [        5          [        XU4[         R                  " 5       R                  SSS.S9u  pE[         R                  " XES9  S S S 5        T" XU5      $ ! , (       d  f       N= f)Nr   F)typehandled)client_options	mechanism)hint)

sentry_sdk
get_clientget_integrationr   _should_sendr   r   r   optionscapture_event)type_value	tracebackintegrationeventr/   old_excepthooks         r   sentry_sdk_excepthook/_make_excepthook.<locals>.sentry_sdk_excepthook1   s     ++-==>ST
 !%	::..//,.29-#-#8#8#:#B#B'3F
 ((: / eI66 /.s   AB//
B=r   )r;   r<   s   ` r   r   r   /   s    7* ! r   c                 @    U (       a  g[        [        S5      (       a  gg)NTps1F)hasattrr   r    s    r   r3   r3   I   s    sE r   r!   )r   r0   sentry_sdk.utilsr   r   sentry_sdk.integrationsr   typingr   r   r   r	   r
   typesr   BaseException
Excepthookr   r   r3   r   r   r   <module>rG      sf    
  0  #	m	mXm-DE	J:K :*!4
r   