관리-도구
편집 파일: tls_check.cpython-311.opt-1.pyc
� IMg( � � � d dl Z d dlZd dlmZ G d� de� � Z e j e� � Z ej � � Z G d� de� � Zd d�Zd� Z dS ) � N)�SqliteExtDatabasec � � e Zd ZdZdS )�OverridingResetz� Overriding reset could be a signal of logic error thus need to be explicitly handled in all places where this exception is expected to occur. N)�__name__� __module__�__qualname__�__doc__� � �T/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/model/tls_check.pyr r s � � � � � �� � �Dr r c � � � e Zd Z� fd�Z� xZS )�SqliteDatabaseWrapperc �N �� t |i |�� t � � j |i |��S �N)� _validate�super�execute_sql)�self�args�kwargs� __class__s �r r z!SqliteDatabaseWrapper.execute_sql s2 �� ��4�"�6�"�"�"�"�u�w�w�"�D�3�F�3�3�3r )r r r r � __classcell__)r s @r r r s8 �� � � � � �4� 4� 4� 4� 4� 4� 4� 4� 4r r c � � t t d� � rt � � �| pt j � � t _ d S )N�thread_ident_memo)�hasattr�_thread_local_storager � threading� get_identr )� new_values r �resetr sC � ��$�&9�:�:� ����� �*�Y�(�*�*� �+�+�+r c � � t t dd � � }|�t � d� � d S |t j � � k r1t � d|t j � � | |� � d S d S )Nr z7wrong thread or _validate() was not preceded by reset()zFthread_ident_memo check failed [%r != %r] context: args: %s kwargs: %s)�getattrr �logger�errorr r )r r r s r r r $ s� � ���2�D�� �� � ����N�O�O�O�O�O� �i�1�3�3� 3� 3���� -����!�!��� � � � � � 4� 3r r )�loggingr �playhouse.sqlite_extr � Exceptionr � getLoggerr r# �localr r r r r r r �<module>r* s� �� ���� � � � � 2� 2� 2� 2� 2� 2� � � � � �i� � � � �� �8� $� $��'� ��)�)� �4� 4� 4� 4� 4�-� 4� 4� 4�� � � � � � � � r