scim2-client 0.3.2__py3-none-any.whl → 0.3.3__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.
- scim2_client/engines/werkzeug.py +5 -0
- {scim2_client-0.3.2.dist-info → scim2_client-0.3.3.dist-info}/METADATA +1 -1
- {scim2_client-0.3.2.dist-info → scim2_client-0.3.3.dist-info}/RECORD +5 -5
- {scim2_client-0.3.2.dist-info → scim2_client-0.3.3.dist-info}/WHEEL +0 -0
- {scim2_client-0.3.2.dist-info → scim2_client-0.3.3.dist-info}/licenses/LICENSE.md +0 -0
scim2_client/engines/werkzeug.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import json
|
|
1
2
|
from contextlib import contextmanager
|
|
2
3
|
from typing import Optional
|
|
3
4
|
from typing import Union
|
|
@@ -13,6 +14,7 @@ from werkzeug.test import Client
|
|
|
13
14
|
|
|
14
15
|
from scim2_client.client import BaseSyncSCIMClient
|
|
15
16
|
from scim2_client.errors import SCIMClientError
|
|
17
|
+
from scim2_client.errors import UnexpectedContentFormat
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
@contextmanager
|
|
@@ -20,6 +22,9 @@ def handle_response_error(response):
|
|
|
20
22
|
try:
|
|
21
23
|
yield
|
|
22
24
|
|
|
25
|
+
except json.decoder.JSONDecodeError as exc:
|
|
26
|
+
raise UnexpectedContentFormat(source=response) from exc
|
|
27
|
+
|
|
23
28
|
except SCIMClientError as exc:
|
|
24
29
|
exc.source = response
|
|
25
30
|
raise exc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: scim2-client
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Pythonically build SCIM requests and parse SCIM responses
|
|
5
5
|
Project-URL: documentation, https://scim2-client.readthedocs.io
|
|
6
6
|
Project-URL: repository, https://github.com/python-scim/scim2-client
|
|
@@ -4,8 +4,8 @@ scim2_client/errors.py,sha256=mxjUvarjvX3797w2NzdLqc6zxCQZlOga8cYABWpUAXM,4401
|
|
|
4
4
|
scim2_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
scim2_client/engines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
scim2_client/engines/httpx.py,sha256=L39ZZHjqe43uIQpgh_r_maqM2gkf3_Rk6d8MeNe57gk,17781
|
|
7
|
-
scim2_client/engines/werkzeug.py,sha256=
|
|
8
|
-
scim2_client-0.3.
|
|
9
|
-
scim2_client-0.3.
|
|
10
|
-
scim2_client-0.3.
|
|
11
|
-
scim2_client-0.3.
|
|
7
|
+
scim2_client/engines/werkzeug.py,sha256=fvlKjVCRoXwo7xddLIkb4KHDRBhigNfchHAwIShemlc,10019
|
|
8
|
+
scim2_client-0.3.3.dist-info/METADATA,sha256=vfOPfVn_DRm_rYaozGBMrzrkdr4csJ4jbyLL2fjzS8I,16997
|
|
9
|
+
scim2_client-0.3.3.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
10
|
+
scim2_client-0.3.3.dist-info/licenses/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
scim2_client-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|