l#g(ddlZddlZddlmZGddeZejeZej Z GddeZ d dZ dZ dS) N)SqliteExtDatabaseceZdZdZdS)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.pyrrs  Dr rceZdZfdZxZS)SqliteDatabaseWrappercNt|i|tj|i|SN) _validatesuper execute_sql)selfargskwargs __class__s r rz!SqliteDatabaseWrapper.execute_sqls24"6""""uww"D3F333r )rrrr __classcell__)rs@r rrs8444444444r rcttdrt|ptjt_dS)Nthread_ident_memo)hasattr_thread_local_storager threading get_identr) new_values r resetr sC$&9::  *Y(**+++r cttdd}|tddS|t jkr1td|t j||dSdS)Nrz7wrong thread or _validate() was not preceded by reset()zFthread_ident_memo check failed [%r != %r] context: args: %s kwargs: %s)getattrrloggererrorrr)rrrs r rr$s2D  NOOOOO i133 3 3  -    ! !         4 3r r)loggingrplayhouse.sqlite_extr Exceptionr getLoggerrr#localrrr rr r r r*s222222     i     8 $ $' ))44444-444      r