satori-python-client 0.13.0__tar.gz → 0.13.2__tar.gz
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.
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/PKG-INFO +1 -1
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/pyproject.toml +1 -1
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/util.py +2 -3
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/.mina/client.toml +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/LICENSE +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/README.md +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/__init__.py +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/account.py +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/account.pyi +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/__init__.py +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/base.py +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/webhook.py +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/websocket.py +0 -0
- {satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/protocol.py +0 -0
{satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/util.py
RENAMED
|
@@ -23,6 +23,8 @@ async def validate_response(resp: ClientResponse, noreturn: Literal[True]) -> No
|
|
|
23
23
|
|
|
24
24
|
async def validate_response(resp: ClientResponse, noreturn=False):
|
|
25
25
|
if 200 <= resp.status < 300:
|
|
26
|
+
if noreturn:
|
|
27
|
+
return
|
|
26
28
|
return json.loads(content) if (content := await resp.text()) else {}
|
|
27
29
|
elif resp.status == 400:
|
|
28
30
|
raise BadRequestException(await resp.text())
|
|
@@ -38,6 +40,3 @@ async def validate_response(resp: ClientResponse, noreturn=False):
|
|
|
38
40
|
raise ApiNotImplementedException(await resp.text())
|
|
39
41
|
else:
|
|
40
42
|
resp.raise_for_status()
|
|
41
|
-
if not noreturn:
|
|
42
|
-
return
|
|
43
|
-
return json.loads(content) if (content := await resp.text()) else {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/__init__.py
RENAMED
|
File without changes
|
{satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/base.py
RENAMED
|
File without changes
|
{satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/webhook.py
RENAMED
|
File without changes
|
{satori_python_client-0.13.0 → satori_python_client-0.13.2}/src/satori/client/network/websocket.py
RENAMED
|
File without changes
|
|
File without changes
|