KeyisBClient-mmbp 0.0.0.1.13__py3-none-any.whl → 0.0.0.1.14__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.
- KeyisBClient_mmbp/Client.py +8 -4
- {KeyisBClient_mmbp-0.0.0.1.13.dist-info → KeyisBClient_mmbp-0.0.0.1.14.dist-info}/METADATA +1 -1
- KeyisBClient_mmbp-0.0.0.1.14.dist-info/RECORD +9 -0
- KeyisBClient_mmbp-0.0.0.1.13.dist-info/RECORD +0 -9
- {KeyisBClient_mmbp-0.0.0.1.13.dist-info → KeyisBClient_mmbp-0.0.0.1.14.dist-info}/LICENSE +0 -0
- {KeyisBClient_mmbp-0.0.0.1.13.dist-info → KeyisBClient_mmbp-0.0.0.1.14.dist-info}/WHEEL +0 -0
- {KeyisBClient_mmbp-0.0.0.1.13.dist-info → KeyisBClient_mmbp-0.0.0.1.14.dist-info}/top_level.txt +0 -0
KeyisBClient_mmbp/Client.py
CHANGED
@@ -8,7 +8,7 @@ import os
|
|
8
8
|
import sys
|
9
9
|
import httpx
|
10
10
|
from KeyisBLogging import logging
|
11
|
-
from KeyisBClient import Exceptions
|
11
|
+
from KeyisBClient import Exceptions, Url
|
12
12
|
from KeyisBClient.models import Request, Response
|
13
13
|
|
14
14
|
def resource_path(relative_path):
|
@@ -79,13 +79,16 @@ class Client:
|
|
79
79
|
request=request,
|
80
80
|
extensions=response.extensions,
|
81
81
|
history=None,
|
82
|
-
default_encoding=response.encoding or "utf-8"
|
82
|
+
default_encoding=response.encoding or "utf-8",
|
83
|
+
url=Url(str(response.url))
|
83
84
|
)
|
84
85
|
except httpx.TimeoutException:
|
85
86
|
logging.debug("HTTPS request timed out")
|
86
87
|
raise Exceptions.ServerTimeoutError()
|
87
|
-
except httpx.ConnectError:
|
88
|
+
except httpx.ConnectError as e:
|
88
89
|
logging.debug("Failed to connect to server")
|
90
|
+
if '[SSL: CERTIFICATE_VERIFY_FAILED]' in str(e):
|
91
|
+
raise Exceptions.CertificateVerifyFailed()
|
89
92
|
raise Exceptions.ErrorConnection()
|
90
93
|
except httpx.HTTPStatusError as e:
|
91
94
|
logging.debug(f"HTTP error occurred: {e.response.status_code} - {e.response.text}")
|
@@ -133,7 +136,8 @@ class Client:
|
|
133
136
|
request=request,
|
134
137
|
extensions=response.extensions,
|
135
138
|
history=None,
|
136
|
-
default_encoding=response.encoding or "utf-8"
|
139
|
+
default_encoding=response.encoding or "utf-8",
|
140
|
+
url=Url(str(response.url))
|
137
141
|
)
|
138
142
|
except httpx.TimeoutException:
|
139
143
|
logging.debug("HTTPS request timed out")
|
@@ -0,0 +1,9 @@
|
|
1
|
+
KeyisBClient_mmbp/Client.py,sha256=SlCSZkmK4_xTREok_zqv9dh0PoUAVP3dIo7Vj9XcYBY,6220
|
2
|
+
KeyisBClient_mmbp/__init__.py,sha256=y8gLgE6Z2VvJFPnXGVeO7P_OYRoRZufvurQrR5RG1jg,1562
|
3
|
+
KeyisBClient_mmbp/gw_certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
KeyisBClient_mmbp/gw_certs/v0.0.1.crt,sha256=4SZKPldOi2FXuOl1Lv9JgjojA8-RL2dzn_mh4XVeuZs,1342
|
5
|
+
KeyisBClient_mmbp-0.0.0.1.14.dist-info/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
|
6
|
+
KeyisBClient_mmbp-0.0.0.1.14.dist-info/METADATA,sha256=7hc3jh9KFCujUhcZxbh_oVwSQlGWQHYTziwFKSavW18,513
|
7
|
+
KeyisBClient_mmbp-0.0.0.1.14.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
8
|
+
KeyisBClient_mmbp-0.0.0.1.14.dist-info/top_level.txt,sha256=h6s4YlLhQ13xiqaDqhXJamhuez9D23BmPTwQvMr54FA,18
|
9
|
+
KeyisBClient_mmbp-0.0.0.1.14.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
KeyisBClient_mmbp/Client.py,sha256=Dp_fyLz_AwR8_vsug9D2KGcVIV-MlQVivmv8XOkb1Vg,5994
|
2
|
-
KeyisBClient_mmbp/__init__.py,sha256=y8gLgE6Z2VvJFPnXGVeO7P_OYRoRZufvurQrR5RG1jg,1562
|
3
|
-
KeyisBClient_mmbp/gw_certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
KeyisBClient_mmbp/gw_certs/v0.0.1.crt,sha256=4SZKPldOi2FXuOl1Lv9JgjojA8-RL2dzn_mh4XVeuZs,1342
|
5
|
-
KeyisBClient_mmbp-0.0.0.1.13.dist-info/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
|
6
|
-
KeyisBClient_mmbp-0.0.0.1.13.dist-info/METADATA,sha256=hi-vZVIYCSNDtLLZPMv6yZsO5f5BI2kY-N3rlKwHWDY,513
|
7
|
-
KeyisBClient_mmbp-0.0.0.1.13.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
8
|
-
KeyisBClient_mmbp-0.0.0.1.13.dist-info/top_level.txt,sha256=h6s4YlLhQ13xiqaDqhXJamhuez9D23BmPTwQvMr54FA,18
|
9
|
-
KeyisBClient_mmbp-0.0.0.1.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{KeyisBClient_mmbp-0.0.0.1.13.dist-info → KeyisBClient_mmbp-0.0.0.1.14.dist-info}/top_level.txt
RENAMED
File without changes
|