wmill 1.502.2__py3-none-any.whl → 1.503.0__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.
wmill/s3_reader.py
CHANGED
@@ -22,6 +22,17 @@ class S3BufferedReader(BufferedReader):
|
|
22
22
|
|
23
23
|
def __enter__(self):
|
24
24
|
reader = self._context_manager.__enter__()
|
25
|
+
if reader.status_code >= 400:
|
26
|
+
error_bytes = reader.read()
|
27
|
+
try:
|
28
|
+
error_text = error_bytes.decode('utf-8')
|
29
|
+
except UnicodeDecodeError:
|
30
|
+
error_text = str(error_bytes)
|
31
|
+
raise httpx.HTTPStatusError(
|
32
|
+
f"Failed to load S3 file: {reader.status_code} {reader.reason_phrase} - {error_text}",
|
33
|
+
request=reader.request,
|
34
|
+
response=reader
|
35
|
+
)
|
25
36
|
self._iterator = reader.iter_bytes()
|
26
37
|
return self
|
27
38
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
|
2
2
|
wmill/client.py,sha256=ZtFtIqi6VKPP3fQgofylkecxVUerNffRH2mWAFDuodY,43537
|
3
3
|
wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
4
|
-
wmill/s3_reader.py,sha256=
|
4
|
+
wmill/s3_reader.py,sha256=_z7izXgA252DaBHaBNO4EEYnK4uZfNQgZAYMRNucvyc,2135
|
5
5
|
wmill/s3_types.py,sha256=S5w6fVAai5Adm1MxZoxF21R-EE5-wRfGzXBK72-FZvE,1199
|
6
|
-
wmill-1.
|
7
|
-
wmill-1.
|
8
|
-
wmill-1.
|
6
|
+
wmill-1.503.0.dist-info/METADATA,sha256=khKjsfduOrBXXnLh--JjY__JmGzz48BTbBI90QkAwOw,2693
|
7
|
+
wmill-1.503.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
8
|
+
wmill-1.503.0.dist-info/RECORD,,
|
File without changes
|