pytonapi 0.2.2__tar.gz → 0.2.4__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.
- {pytonapi-0.2.2 → pytonapi-0.2.4}/PKG-INFO +1 -1
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/client.py +2 -9
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/client.py +2 -9
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi.egg-info/PKG-INFO +1 -1
- {pytonapi-0.2.2 → pytonapi-0.2.4}/setup.py +1 -1
- {pytonapi-0.2.2 → pytonapi-0.2.4}/LICENSE +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/README.md +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/__init__.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/__init__.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/__init__.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/accounts.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/blockchain.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/dns.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/emulate.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/events.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/inscriptions.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/jettons.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/liteserver.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/nft.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/rates.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/sse.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/staking.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/storage.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/tonconnect.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/traces.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/wallet.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/async_tonapi/methods/websocket.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/exceptions.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/__init__.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/_address.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/_balance.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/accounts.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/blockchain.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/dns.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/domains.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/events.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/inscriptions.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/jettons.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/liteserver.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/nft.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/rates.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/staking.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/storage.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/tonconnect.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/schema/traces.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/__init__.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/__init__.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/accounts.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/blockchain.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/dns.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/emulate.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/events.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/inscriptions.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/jettons.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/liteserver.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/nft.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/rates.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/sse.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/staking.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/storage.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/tonconnect.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/traces.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/tonapi/methods/wallet.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi/utils.py +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi.egg-info/SOURCES.txt +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi.egg-info/dependency_links.txt +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi.egg-info/requires.txt +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/pytonapi.egg-info/top_level.txt +0 -0
- {pytonapi-0.2.2 → pytonapi-0.2.4}/setup.cfg +0 -0
|
@@ -62,15 +62,8 @@ class AsyncTonapiClient:
|
|
|
62
62
|
"""
|
|
63
63
|
try:
|
|
64
64
|
content = response.json()
|
|
65
|
-
except httpx.ResponseNotRead:
|
|
66
|
-
|
|
67
|
-
content_decoded = content_bytes.decode()
|
|
68
|
-
try:
|
|
69
|
-
content = json.loads(content_decoded)
|
|
70
|
-
except json.JSONDecodeError:
|
|
71
|
-
content = {"error": content_decoded}
|
|
72
|
-
except json.JSONDecodeError:
|
|
73
|
-
content = {"error", response.text}
|
|
65
|
+
except (httpx.ResponseNotRead, json.JSONDecodeError):
|
|
66
|
+
content = {"error": response.text}
|
|
74
67
|
except Exception as e:
|
|
75
68
|
raise TONAPIError(f"Failed to read response content: {e}")
|
|
76
69
|
|
|
@@ -58,15 +58,8 @@ class TonapiClient:
|
|
|
58
58
|
"""
|
|
59
59
|
try:
|
|
60
60
|
content = response.json()
|
|
61
|
-
except httpx.ResponseNotRead:
|
|
62
|
-
|
|
63
|
-
content_decoded = content_bytes.decode()
|
|
64
|
-
try:
|
|
65
|
-
content = json.loads(content_decoded)
|
|
66
|
-
except json.JSONDecodeError:
|
|
67
|
-
content = {"error": content_decoded}
|
|
68
|
-
except json.JSONDecodeError:
|
|
69
|
-
content = {"error", response.text}
|
|
61
|
+
except (httpx.ResponseNotRead, json.JSONDecodeError):
|
|
62
|
+
content = {"error": response.text}
|
|
70
63
|
except Exception as e:
|
|
71
64
|
raise TONAPIError(f"Failed to read response content: {e}")
|
|
72
65
|
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|