near-jsonrpc-client 1.0.19__py3-none-any.whl → 1.0.20__py3-none-any.whl
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.
- near_jsonrpc_client/errors.py +7 -3
- {near_jsonrpc_client-1.0.19.dist-info → near_jsonrpc_client-1.0.20.dist-info}/METADATA +1 -1
- {near_jsonrpc_client-1.0.19.dist-info → near_jsonrpc_client-1.0.20.dist-info}/RECORD +6 -6
- {near_jsonrpc_client-1.0.19.dist-info → near_jsonrpc_client-1.0.20.dist-info}/WHEEL +0 -0
- {near_jsonrpc_client-1.0.19.dist-info → near_jsonrpc_client-1.0.20.dist-info}/licenses/LICENSE +0 -0
- {near_jsonrpc_client-1.0.19.dist-info → near_jsonrpc_client-1.0.20.dist-info}/top_level.txt +0 -0
near_jsonrpc_client/errors.py
CHANGED
|
@@ -23,12 +23,16 @@ class HttpError(ClientError):
|
|
|
23
23
|
class RpcError(ClientError):
|
|
24
24
|
"""JSON-RPC error object wrapping the Pydantic error model."""
|
|
25
25
|
|
|
26
|
-
def __init__(self, error: BaseModel):
|
|
26
|
+
def __init__(self, error: BaseModel | str):
|
|
27
27
|
self.error = error
|
|
28
|
-
super().__init__(getattr(error, "message", "RPC Error"))
|
|
29
28
|
|
|
29
|
+
if isinstance(error, BaseModel):
|
|
30
|
+
super().__init__(getattr(error, "message", "RPC Error"))
|
|
31
|
+
else:
|
|
32
|
+
super().__init__(error)
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
|
|
35
|
+
class RpcTimeoutError(ClientError):
|
|
32
36
|
"""Timeout Error"""
|
|
33
37
|
|
|
34
38
|
def __init__(self):
|
|
@@ -3,9 +3,9 @@ near_jsonrpc_client/api_methods_async.py,sha256=ELi7-hV3GugFlI7hLNhkjYStupO2LY3O
|
|
|
3
3
|
near_jsonrpc_client/api_methods_sync.py,sha256=XUtvoUmMeMRmq1XT-QNgvLWKEJ9mq1GAwM85j-xXE6g,27095
|
|
4
4
|
near_jsonrpc_client/base_client.py,sha256=70KENuSAb7DN5zUM0uA_1pC2kVQ9n3Kt_R59m1c3j4w,4313
|
|
5
5
|
near_jsonrpc_client/client.py,sha256=8gnY3tgUOGwUe4r8_mOedlLik8Zr6jxbNMVxwPlmHYo,453
|
|
6
|
-
near_jsonrpc_client/errors.py,sha256=
|
|
6
|
+
near_jsonrpc_client/errors.py,sha256=s0p8fDeith1WyuN9fERry9lMduFeaGmu8cXEqaEYvXM,957
|
|
7
7
|
near_jsonrpc_client/transport.py,sha256=r92Zf7r_4ggU_fKp4pR9WyeaUOVOyLEW7xqz8Ny1buY,1012
|
|
8
|
-
near_jsonrpc_client-1.0.
|
|
8
|
+
near_jsonrpc_client-1.0.20.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
9
9
|
near_jsonrpc_models/__init__.py,sha256=l7gDQiY4sNIibaz_KVMSS70kE5UrqVsjIrn9xNv-Hw4,225545
|
|
10
10
|
near_jsonrpc_models/access_key.py,sha256=Yxb_imR1x07BdrtSifGDbhKHfuvD8HYYa0iaj3g0V84,918
|
|
11
11
|
near_jsonrpc_models/access_key_creation_config_view.py,sha256=z3DIfoi6jojkk-S91Eyj15CM_0ZScyOOOmyWYqio4e0,466
|
|
@@ -351,7 +351,7 @@ near_jsonrpc_models/vmconfig_view.py,sha256=LiW1t0jqnCiSdb8uuUBMaGzGg2NAudUo9kcO
|
|
|
351
351
|
near_jsonrpc_models/vmkind.py,sha256=tCxyZlDaGn3bz-lThkbUj0oO6qxoQP7lGANMusstpC8,252
|
|
352
352
|
near_jsonrpc_models/wasm_trap.py,sha256=y0nay7ulaHOGpHPRnKIU0FWxHeWfwnrYiYvllLry3Mw,791
|
|
353
353
|
near_jsonrpc_models/witness_config_view.py,sha256=kTeYTx1mtk0IT6ary63awFk5hIGn8mS8UlOCMaqhr2Q,912
|
|
354
|
-
near_jsonrpc_client-1.0.
|
|
355
|
-
near_jsonrpc_client-1.0.
|
|
356
|
-
near_jsonrpc_client-1.0.
|
|
357
|
-
near_jsonrpc_client-1.0.
|
|
354
|
+
near_jsonrpc_client-1.0.20.dist-info/METADATA,sha256=ptCh12DyFVAq9DQfVhKlkmON5A6OiMva9DPSn01CT3Y,6303
|
|
355
|
+
near_jsonrpc_client-1.0.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
356
|
+
near_jsonrpc_client-1.0.20.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
|
|
357
|
+
near_jsonrpc_client-1.0.20.dist-info/RECORD,,
|
|
File without changes
|
{near_jsonrpc_client-1.0.19.dist-info → near_jsonrpc_client-1.0.20.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|