proa-docs 0.1.0__tar.gz → 0.1.1__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.
- {proa_docs-0.1.0 → proa_docs-0.1.1}/PKG-INFO +1 -1
- {proa_docs-0.1.0 → proa_docs-0.1.1}/pyproject.toml +1 -1
- {proa_docs-0.1.0 → proa_docs-0.1.1}/pyproject.toml.orig +1 -1
- {proa_docs-0.1.0 → proa_docs-0.1.1}/src/proa_docs/__init__.py +1 -1
- {proa_docs-0.1.0 → proa_docs-0.1.1}/src/proa_docs/cli.py +2 -1
- {proa_docs-0.1.0 → proa_docs-0.1.1}/src/proa_docs/client.py +1 -1
- {proa_docs-0.1.0 → proa_docs-0.1.1}/LICENSE +0 -0
- {proa_docs-0.1.0 → proa_docs-0.1.1}/README.md +0 -0
- {proa_docs-0.1.0 → proa_docs-0.1.1}/src/proa_docs/py.typed +0 -0
|
@@ -6,6 +6,7 @@ from __future__ import annotations
|
|
|
6
6
|
import argparse
|
|
7
7
|
import json
|
|
8
8
|
import sys
|
|
9
|
+
from http.client import HTTPException
|
|
9
10
|
from urllib.error import URLError
|
|
10
11
|
|
|
11
12
|
from . import __version__
|
|
@@ -48,7 +49,7 @@ def main() -> None:
|
|
|
48
49
|
file=sys.stderr,
|
|
49
50
|
)
|
|
50
51
|
sys.exit(1)
|
|
51
|
-
except (URLError, OSError, ValueError) as error:
|
|
52
|
+
except (HTTPException, URLError, OSError, ValueError) as error:
|
|
52
53
|
print(json.dumps({"error": str(error)}), file=sys.stderr)
|
|
53
54
|
sys.exit(1)
|
|
54
55
|
|
|
@@ -61,7 +61,7 @@ class ProaDocs:
|
|
|
61
61
|
query = urlencode({key: value for key, value in parameters.items() if value is not None})
|
|
62
62
|
request = Request(
|
|
63
63
|
f"{self.base_url}/{endpoint}?{query}",
|
|
64
|
-
headers={"Accept": "application/json", "User-Agent": "proa-docs-python/0.1.
|
|
64
|
+
headers={"Accept": "application/json", "User-Agent": "proa-docs-python/0.1.1"},
|
|
65
65
|
method="GET",
|
|
66
66
|
)
|
|
67
67
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|