arpakitlib 1.8.150__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.
- arpakitlib/_arpakit_project_template_v_5/project/api/exception_handler.py +18 -18
- {arpakitlib-1.8.150.dist-info → arpakitlib-1.8.151.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.150.dist-info → arpakitlib-1.8.151.dist-info}/RECORD +6 -6
- {arpakitlib-1.8.150.dist-info → arpakitlib-1.8.151.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.150.dist-info → arpakitlib-1.8.151.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.150.dist-info → arpakitlib-1.8.151.dist-info}/entry_points.txt +0 -0
@@ -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
|
@@ -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=
|
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
|
@@ -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.
|
410
|
-
arpakitlib-1.8.
|
411
|
-
arpakitlib-1.8.
|
412
|
-
arpakitlib-1.8.
|
413
|
-
arpakitlib-1.8.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|