finalsa-common-http-client 0.0.3__py3-none-any.whl → 0.0.4__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.
@@ -117,8 +117,8 @@ class BaseAsyncHttpClient:
117
117
  )
118
118
  response.raise_for_status()
119
119
  return response
120
- except ClientResponseError as e:
121
- if "Content-Type" in e.headers and e.headers["Content-Type"] == "application/json" and response is not None:
120
+ except Exception as e:
121
+ if response is not None and "Content-Type" in response.headers and response.headers["Content-Type"] == "application/json":
122
122
  data = await response.json()
123
123
  if data.get("message") and data.get("name"):
124
124
  raise BaseDomainException(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: finalsa-common-http-client
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: HTTP client library for common data types used in business applications
5
5
  Project-URL: Homepage, https://github.com/finalsa/finalsa-http-client
6
6
  Project-URL: Documentation, https://github.com/finalsa/finalsa-http-client#readme
@@ -1,10 +1,10 @@
1
1
  finalsa/http/__init__.py,sha256=tTeA_AP5gfFiXF783AxX5ZtSiQXxR1jkQ196J9YxXNk,419
2
2
  finalsa/http/_shared.py,sha256=cYrac3Tjai7fv8KiyKi7Y5M5u88Q-lcTFS3XsEgy-IQ,2729
3
3
  finalsa/http/async_client/__init__.py,sha256=L25WfVpUpPZlMv6-cgeWlNvmK5UJOhLZ1NOndcIsA9w,73
4
- finalsa/http/async_client/base.py,sha256=OKaxKU1WDxpGi3bzBZxcjnIo7XcadKiPQ7fb93DBsvg,5994
4
+ finalsa/http/async_client/base.py,sha256=W9UEe_74ie82QmrdUx58dsYVskRmPPbnEaym3CicX0k,5998
5
5
  finalsa/http/sync_client/__init__.py,sha256=ocLE6dofwYCD9_rJpIP1KhlIujRFcaJfhoaeXVrSCVE,59
6
6
  finalsa/http/sync_client/base.py,sha256=9hGvci9USjmp9gG_uKAdcj-hsF79NJ3pvmNVlA5K6u8,5406
7
- finalsa_common_http_client-0.0.3.dist-info/METADATA,sha256=atIi-1FGxjq-DaI4ih6MwDaRUzoKOE29IBuEo6i_EFo,9102
8
- finalsa_common_http_client-0.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- finalsa_common_http_client-0.0.3.dist-info/licenses/LICENSE.md,sha256=_lu-V-f2tGID1BS2V_W6D2XWppBsylFF1J2KEpfIXN0,1084
10
- finalsa_common_http_client-0.0.3.dist-info/RECORD,,
7
+ finalsa_common_http_client-0.0.4.dist-info/METADATA,sha256=m2xYoFTcYN5bL6ZIKDoPrjtrdsdXL-S0du69X7uycsc,9102
8
+ finalsa_common_http_client-0.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ finalsa_common_http_client-0.0.4.dist-info/licenses/LICENSE.md,sha256=_lu-V-f2tGID1BS2V_W6D2XWppBsylFF1J2KEpfIXN0,1084
10
+ finalsa_common_http_client-0.0.4.dist-info/RECORD,,