arpakitlib 1.8.149__py3-none-any.whl → 1.8.151__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -236,6 +236,24 @@ def get_exception_handler() -> Callable:
236
236
  funcs_before = []
237
237
  async_funcs_after = []
238
238
 
239
+ funcs_before.append(
240
+ logging_func_before_in_api_exception_handler(
241
+ ignore_api_error_codes=[
242
+ APIErrorCodes.cannot_authorize,
243
+ APIErrorCodes.error_in_request,
244
+ APIErrorCodes.not_found
245
+ ],
246
+ ignore_status_codes=[
247
+ fastapi.status.HTTP_401_UNAUTHORIZED,
248
+ fastapi.status.HTTP_422_UNPROCESSABLE_ENTITY,
249
+ fastapi.status.HTTP_404_NOT_FOUND
250
+ ],
251
+ ignore_exception_types=[
252
+ fastapi.exceptions.RequestValidationError
253
+ ],
254
+ )
255
+ )
256
+
239
257
  if get_cached_sqlalchemy_db() is not None:
240
258
  funcs_before.append(
241
259
  create_story_log_func_before_in_api_exception_handler(
@@ -255,24 +273,6 @@ def get_exception_handler() -> Callable:
255
273
  )
256
274
  )
257
275
 
258
- funcs_before.append(
259
- logging_func_before_in_api_exception_handler(
260
- ignore_api_error_codes=[
261
- APIErrorCodes.cannot_authorize,
262
- APIErrorCodes.error_in_request,
263
- APIErrorCodes.not_found
264
- ],
265
- ignore_status_codes=[
266
- fastapi.status.HTTP_401_UNAUTHORIZED,
267
- fastapi.status.HTTP_422_UNPROCESSABLE_ENTITY,
268
- fastapi.status.HTTP_404_NOT_FOUND
269
- ],
270
- ignore_exception_types=[
271
- fastapi.exceptions.RequestValidationError
272
- ],
273
- )
274
- )
275
-
276
276
  return create_api_exception_handler(
277
277
  funcs_before=funcs_before,
278
278
  async_funcs_after=async_funcs_after
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arpakitlib
3
- Version: 1.8.149
3
+ Version: 1.8.151
4
4
  Summary: arpakitlib
5
5
  License: Apache-2.0
6
6
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
@@ -92,7 +92,7 @@ arpakitlib/_arpakit_project_template_v_5/project/api/create_api_app.py,sha256=-0
92
92
  arpakitlib/_arpakit_project_template_v_5/project/api/create_first_data.py,sha256=sc98-xW74QbhFCT6AW5-fUJVd8RLRxClAOEW5-ec9T0,1815
93
93
  arpakitlib/_arpakit_project_template_v_5/project/api/event.py,sha256=P8gV2Bq6LeLH0JDN9Z3O401PMbyNr2n-tme2gPvT-m4,996
94
94
  arpakitlib/_arpakit_project_template_v_5/project/api/exception.py,sha256=cNZaI2DacGLl8Hyn1qIfFpVjvQzOQjwXWsVW4auBrCo,1280
95
- arpakitlib/_arpakit_project_template_v_5/project/api/exception_handler.py,sha256=TEzkCNOg_TAELRTZgLtblVagSaHf-vego_oH5FNCbcs,11179
95
+ arpakitlib/_arpakit_project_template_v_5/project/api/exception_handler.py,sha256=q6a4HHIIWnCinAOu89mQrpABm0WMTANNCOPLa1YG7_k,11179
96
96
  arpakitlib/_arpakit_project_template_v_5/project/api/openapi_ui.py,sha256=PLhH-W6zDViO-75AGCs8Vq3IoyHChdqwBYAqLvdQN0U,904
97
97
  arpakitlib/_arpakit_project_template_v_5/project/api/response.py,sha256=xZMymP2BuQaRNVWLeIp3UgUUo-MFN8MJnsn9Al4vOb8,1028
98
98
  arpakitlib/_arpakit_project_template_v_5/project/api/router/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -262,7 +262,7 @@ arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model
262
262
  arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user.py,sha256=-gmBWOAHJsUl-YY7U_2ZcKK5GV9dPHpvpdTRQnfbA_0,7579
263
263
  arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user_token.py,sha256=hX6nHvVvhg5YB3vCjsku4TDoY5Jk1FsuDu5elbcF7VE,1886
264
264
  arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/verification_code.py,sha256=xrrNPXn5PeCnZ2VWVBdXDUft83EEYtc6b4pvs0oh1uw,3078
265
- arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/util.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
265
+ arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
266
266
  arpakitlib/_arpakit_project_template_v_5/project/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
267
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_api_keys.py,sha256=9F2bMfymaqx_Czh_tF945BKpKqNrVNjSIfCQl13Dkxw,911
268
268
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_data_1.py,sha256=F7vCmfWjItw5QzYR7_OAPSHdJt9louuvqXvcfOkU0AU,2246
@@ -406,8 +406,8 @@ arpakitlib/ar_ssh_runner_util.py,sha256=yvAwza480MkHKvLkDEsR7JNh2bYNs6P9rCVo4NA8
406
406
  arpakitlib/ar_str_util.py,sha256=2lGpnXDf2h1cBZpVf5i1tX_HCv5iBd6IGnrCw4QWWlY,4350
407
407
  arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
408
408
  arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
409
- arpakitlib-1.8.149.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
410
- arpakitlib-1.8.149.dist-info/METADATA,sha256=6PCWAbE5oRC_-nHI_hKCKx1NDT8snzoGyx_5eoEYfhE,3706
411
- arpakitlib-1.8.149.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
412
- arpakitlib-1.8.149.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
413
- arpakitlib-1.8.149.dist-info/RECORD,,
409
+ arpakitlib-1.8.151.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
410
+ arpakitlib-1.8.151.dist-info/METADATA,sha256=T9_jeYVGKoFTFcemqy-G9dIK_pf7x0fL4r1G8mJE9kI,3706
411
+ arpakitlib-1.8.151.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
412
+ arpakitlib-1.8.151.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
413
+ arpakitlib-1.8.151.dist-info/RECORD,,