nocfo-cli 1.2.2__tar.gz → 1.2.3__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.
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/PKG-INFO +1 -1
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/pyproject.toml +1 -1
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/mcp/http_error_capture.py +6 -1
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/LICENSE +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/README.md +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/__init__.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/api_client.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/__init__.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/app.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/__init__.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/_helpers.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/accounts.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/auth.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/businesses.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/contacts.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/documents.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/files.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/invoices.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/products.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/purchase_invoices.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/reports.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/schema.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/tags.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/commands/user.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/context.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/cli/output.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/config.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/mcp/__init__.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/mcp/auth.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/mcp/error_handling.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/mcp/middleware.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/mcp/server.py +0 -0
- {nocfo_cli-1.2.2 → nocfo_cli-1.2.3}/src/nocfo_toolkit/openapi.py +0 -0
|
@@ -27,9 +27,14 @@ async def capture_http_error_response(response: httpx.Response) -> None:
|
|
|
27
27
|
_LAST_HTTP_ERROR.set(None)
|
|
28
28
|
return
|
|
29
29
|
|
|
30
|
+
try:
|
|
31
|
+
await response.aread()
|
|
32
|
+
except httpx.HTTPError:
|
|
33
|
+
pass
|
|
34
|
+
|
|
30
35
|
try:
|
|
31
36
|
payload: Any = response.json() if response.content else None
|
|
32
|
-
except ValueError:
|
|
37
|
+
except (ValueError, httpx.ResponseNotRead):
|
|
33
38
|
payload = (response.text or "").strip()[:1000] or None
|
|
34
39
|
|
|
35
40
|
_LAST_HTTP_ERROR.set(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|