arpakitlib 1.5.40__py3-none-any.whl → 1.6.1__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.
@@ -219,13 +219,13 @@ def create_handle_exception(
219
219
 
220
220
  _kwargs = {}
221
221
  for func in funcs_before_response:
222
- data = func(
223
- error_so=error_so, status_code=status_code, request=request, exception=exception, **_kwargs
222
+ _func_data = func(
223
+ status_code=status_code, error_so=error_so, request=request, exception=exception, **_kwargs
224
224
  )
225
- if asyncio.iscoroutine(data):
226
- data = await data
227
- if data is not None:
228
- status_code, error_so, _kwargs = data[0], data[1], data[2]
225
+ if asyncio.iscoroutine(_func_data):
226
+ _func_data = await _func_data
227
+ if _func_data is not None:
228
+ status_code, error_so, _kwargs = _func_data[0], _func_data[1], _func_data[2]
229
229
  raise_for_type(status_code, int)
230
230
  raise_for_type(error_so, ErrorSO)
231
231
  raise_for_type(_kwargs, dict)
@@ -250,8 +250,8 @@ def create_handle_exception_creating_story_log(
250
250
  ) -> Callable:
251
251
  def handle_exception(
252
252
  *,
253
- error_so: ErrorSO,
254
253
  status_code: int,
254
+ error_so: ErrorSO,
255
255
  request: starlette.requests.Request,
256
256
  exception: Exception,
257
257
  **kwargs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arpakitlib
3
- Version: 1.5.40
3
+ Version: 1.6.1
4
4
  Summary: arpakitlib
5
5
  Home-page: https://github.com/ARPAKIT-Company/arpakitlib
6
6
  License: Apache-2.0
@@ -35,7 +35,7 @@ arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css,sha256=jzPZlgJTFwSdSphk9C
35
35
  arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css.map,sha256=5wq8eXMLU6Zxb45orZPL1zAsBFJReFw6GjYqGpUX3hg,262650
36
36
  arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js,sha256=ffrLZHHEQ_g84A-ul3yWa10Kk09waOAxHcQXPuZuavg,339292
37
37
  arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js.map,sha256=9UhIW7MqCOZPAz1Sl1IKfZUuhWU0p-LJqrnjjJD9Xhc,1159454
38
- arpakitlib/ar_fastapi_util.py,sha256=05Bg7PB7LyCdn2I4ptxOJKzMbB3lS1RbBBMc8sE6HWY,16713
38
+ arpakitlib/ar_fastapi_util.py,sha256=qLu7DIamVLrAM2A2yAbyP0r-Y0XfNK0WFj4GPwJ9bPc,16761
39
39
  arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyjNsjj2UhyHRbE,3674
40
40
  arpakitlib/ar_generate_env_example.py,sha256=R_pdbFZe-mIZxEps2dm-K9m8rAg1pAaMzFOBPTGe4s4,370
41
41
  arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
@@ -63,8 +63,8 @@ arpakitlib/ar_str_util.py,sha256=xSEzmsDvRiZVaxyqFFjcgzpphktCbXg2FHcvsd1DYpA,188
63
63
  arpakitlib/ar_type_util.py,sha256=I6jbTz7_dxR1lkhz1JfUb5ZyLLdXVhG_-hzjdgT6N6s,1932
64
64
  arpakitlib/ar_yookassa_api_client_util.py,sha256=5GMvu8paByni8buhc1vpHB7n6oXe0gPfj1LSvnyZCrQ,5307
65
65
  arpakitlib/ar_zabbix_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
66
- arpakitlib-1.5.40.dist-info/LICENSE,sha256=1jqWIkbnMxDfs_i0SXP5qbV6PHjBr1g8506oW7uPjfg,11347
67
- arpakitlib-1.5.40.dist-info/METADATA,sha256=LwdjzZ4mVcgUfIZxUonowzcObR9Rxhj_RkP7k4f1tTM,2320
68
- arpakitlib-1.5.40.dist-info/NOTICE,sha256=wHwmiq3wExfFfgMsE5U5TOBP9_l72ocIG82KurEels0,43
69
- arpakitlib-1.5.40.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
70
- arpakitlib-1.5.40.dist-info/RECORD,,
66
+ arpakitlib-1.6.1.dist-info/LICENSE,sha256=1jqWIkbnMxDfs_i0SXP5qbV6PHjBr1g8506oW7uPjfg,11347
67
+ arpakitlib-1.6.1.dist-info/METADATA,sha256=lAeAkMZymnIKUmEIspOVk8cHzAM7Kx24gz58T1_4qZw,2319
68
+ arpakitlib-1.6.1.dist-info/NOTICE,sha256=wHwmiq3wExfFfgMsE5U5TOBP9_l72ocIG82KurEels0,43
69
+ arpakitlib-1.6.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
70
+ arpakitlib-1.6.1.dist-info/RECORD,,