gnetclisdk 1.0.68__py3-none-any.whl → 1.0.70__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.
- gnetclisdk/exceptions.py +5 -2
- {gnetclisdk-1.0.68.dist-info → gnetclisdk-1.0.70.dist-info}/METADATA +1 -1
- {gnetclisdk-1.0.68.dist-info → gnetclisdk-1.0.70.dist-info}/RECORD +5 -5
- {gnetclisdk-1.0.68.dist-info → gnetclisdk-1.0.70.dist-info}/WHEEL +0 -0
- {gnetclisdk-1.0.68.dist-info → gnetclisdk-1.0.70.dist-info}/top_level.txt +0 -0
gnetclisdk/exceptions.py
CHANGED
@@ -118,8 +118,11 @@ def parse_grpc_error(grpc_error: grpc.aio.AioRpcError) -> Tuple[Type[GnetcliExce
|
|
118
118
|
detail = ""
|
119
119
|
if grpc_error.details():
|
120
120
|
detail = grpc_error.details() # type: ignore
|
121
|
-
reason =
|
122
|
-
metadata =
|
121
|
+
reason = ""
|
122
|
+
metadata = None
|
123
|
+
if error_info:
|
124
|
+
reason = error_info.reason
|
125
|
+
metadata = dict(error_info.metadata)
|
123
126
|
if code == grpc.StatusCode.UNAVAILABLE and detail == "not ready":
|
124
127
|
return NotReady, ""
|
125
128
|
if code == grpc.StatusCode.UNAUTHENTICATED:
|
@@ -1,11 +1,11 @@
|
|
1
1
|
gnetclisdk/auth.py,sha256=GwM7H7Ecb-gwqUTkQorifNB_mtnZfgeS46gOW2Vx1U4,1246
|
2
2
|
gnetclisdk/client.py,sha256=VjbXL11xAUYRX5e6tnedTt6X7_lvvhysYm04EFbhtl8,19773
|
3
|
-
gnetclisdk/exceptions.py,sha256
|
3
|
+
gnetclisdk/exceptions.py,sha256=FVaj3X5163yPFsglfsw3MaZ9r3OE_Cih9N7EL1NTGgo,3791
|
4
4
|
gnetclisdk/interceptors.py,sha256=apj3l4lnR2ZcsA49odptrBC0kTDmP6Mp0EzYkeEJz9Y,7010
|
5
5
|
gnetclisdk/proto/server_pb2.py,sha256=OQsW6Oh38zf-h1ctcNyeOyxjl5wzWm_D9SRT2Usx5q4,8083
|
6
6
|
gnetclisdk/proto/server_pb2.pyi,sha256=th-HnFVkR1ZEY-XmFmk8VMfDj_4uFAoSAXH61mSlVec,8295
|
7
7
|
gnetclisdk/proto/server_pb2_grpc.py,sha256=H_CmevWcjvGTvp4TmzEV-TJRPq2SsQ6UgoCDc-hosyo,12805
|
8
|
-
gnetclisdk-1.0.
|
9
|
-
gnetclisdk-1.0.
|
10
|
-
gnetclisdk-1.0.
|
11
|
-
gnetclisdk-1.0.
|
8
|
+
gnetclisdk-1.0.70.dist-info/METADATA,sha256=T9FmajilNOwU9JgWokI2-q8S00Jn2vcse-8mvsCx6wg,1793
|
9
|
+
gnetclisdk-1.0.70.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
10
|
+
gnetclisdk-1.0.70.dist-info/top_level.txt,sha256=MNjS8LEt6d2rZ-dUbV2cnqkuTMu3EqEL2eiSvUZuUlA,11
|
11
|
+
gnetclisdk-1.0.70.dist-info/RECORD,,
|
File without changes
|
File without changes
|