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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: proa-docs
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Official Proa Rust framework documentation SDK and CLI
5
5
  Keywords: proa,rust,documentation,sdk,cli,agents,mcp
6
6
  Author: Proa Labs, Inc.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "proa-docs"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "Official Proa Rust framework documentation SDK and CLI"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -3,7 +3,7 @@
3
3
 
4
4
  [project]
5
5
  name = "proa-docs"
6
- version = "0.1.0"
6
+ version = "0.1.1"
7
7
  description = "Official Proa Rust framework documentation SDK and CLI"
8
8
  readme = "README.md"
9
9
  authors = [
@@ -6,4 +6,4 @@
6
6
  from .client import Document, DocumentList, DocumentSummary, ProaApiError, ProaDocs
7
7
 
8
8
  __all__ = ["Document", "DocumentList", "DocumentSummary", "ProaApiError", "ProaDocs"]
9
- __version__ = "0.1.0"
9
+ __version__ = "0.1.1"
@@ -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.0"},
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