nucliadb-utils 5.1.2.post1351__py3-none-any.whl → 5.1.2.post1364__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.
- nucliadb_utils/storages/s3.py +5 -0
- {nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/METADATA +3 -3
- {nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/RECORD +6 -6
- {nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/WHEEL +0 -0
- {nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/zip-safe +0 -0
nucliadb_utils/storages/s3.py
CHANGED
@@ -506,12 +506,17 @@ async def create_bucket(
|
|
506
506
|
|
507
507
|
|
508
508
|
def parse_status_code(error: botocore.exceptions.ClientError) -> int:
|
509
|
+
status_code = error.response.get("ResponseMetadata", {}).get("HTTPStatusCode", None)
|
510
|
+
if status_code is not None:
|
511
|
+
return status_code
|
512
|
+
|
509
513
|
error_code = error.response["Error"]["Code"]
|
510
514
|
if error_code.isnumeric():
|
511
515
|
return int(error_code)
|
512
516
|
|
513
517
|
# See https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList
|
514
518
|
error_code_mappings = {
|
519
|
+
"AccessDenied": 403,
|
515
520
|
"NoSuchBucket": 404,
|
516
521
|
"NoSuchKey": 404,
|
517
522
|
"BucketNotEmpty": 409,
|
{nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 5.1.2.
|
3
|
+
Version: 5.1.2.post1364
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -24,8 +24,8 @@ Requires-Dist: PyNaCl
|
|
24
24
|
Requires-Dist: pyjwt>=2.4.0
|
25
25
|
Requires-Dist: memorylru>=1.1.2
|
26
26
|
Requires-Dist: mrflagly>=0.2.9
|
27
|
-
Requires-Dist: nucliadb-protos>=5.1.2.
|
28
|
-
Requires-Dist: nucliadb-telemetry>=5.1.2.
|
27
|
+
Requires-Dist: nucliadb-protos>=5.1.2.post1364
|
28
|
+
Requires-Dist: nucliadb-telemetry>=5.1.2.post1364
|
29
29
|
Provides-Extra: cache
|
30
30
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
31
31
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
@@ -51,7 +51,7 @@ nucliadb_utils/storages/gcs.py,sha256=TQlPpg9HzfHbOu_iCLPUo9KAql1IIjWxJ9mVJ9_CrV
|
|
51
51
|
nucliadb_utils/storages/local.py,sha256=NxC_nMBd38NDsR266DSgoBLdQlvUwf0_sd50r-BLI0E,10288
|
52
52
|
nucliadb_utils/storages/nuclia.py,sha256=vEv94xAT7QM2g80S25QyrOw2pzvP2BAX-ADgZLtuCVc,2097
|
53
53
|
nucliadb_utils/storages/object_store.py,sha256=Tw10GmpYfM5TMqJ3Tk9pLQ9wLMBk1-snL_m6uasiZDQ,4257
|
54
|
-
nucliadb_utils/storages/s3.py,sha256=
|
54
|
+
nucliadb_utils/storages/s3.py,sha256=tCJxSXwSq2hKaFole71ctpEXjcjBElUuTFWlmhLkytM,19471
|
55
55
|
nucliadb_utils/storages/settings.py,sha256=ugCPy1zxBOmA2KosT-4tsjpvP002kg5iQyi42yCGCJA,1285
|
56
56
|
nucliadb_utils/storages/storage.py,sha256=4O2vUEAQz5SA93m9tVgNxOVuuy96gDNNvMrmutXpnjM,19695
|
57
57
|
nucliadb_utils/storages/utils.py,sha256=8g2rIwJeYIumQLOB47Yw1rx3twlhRB_cJxer65QfZmk,1479
|
@@ -64,8 +64,8 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
|
|
64
64
|
nucliadb_utils/tests/local.py,sha256=7nuP8EFUAiA8ZH50R1iPV9EUXBySQxOanVm3Zht_e0g,1835
|
65
65
|
nucliadb_utils/tests/nats.py,sha256=xqpww4jZjTKY9oPGlJdDJG67L3FIBQsa9qDHxILR8r8,7687
|
66
66
|
nucliadb_utils/tests/s3.py,sha256=IdMxK_cNdSHLvO1u8BwsKFzD87Hk1MVPDZ57zx6h-rA,3656
|
67
|
-
nucliadb_utils-5.1.2.
|
68
|
-
nucliadb_utils-5.1.2.
|
69
|
-
nucliadb_utils-5.1.2.
|
70
|
-
nucliadb_utils-5.1.2.
|
71
|
-
nucliadb_utils-5.1.2.
|
67
|
+
nucliadb_utils-5.1.2.post1364.dist-info/METADATA,sha256=xJ9c-d_nGfz0jk9BP6CRj0sIIOM1r0ILwj7ncUN0nYI,2071
|
68
|
+
nucliadb_utils-5.1.2.post1364.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
69
|
+
nucliadb_utils-5.1.2.post1364.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
70
|
+
nucliadb_utils-5.1.2.post1364.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
71
|
+
nucliadb_utils-5.1.2.post1364.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/top_level.txt
RENAMED
File without changes
|
{nucliadb_utils-5.1.2.post1351.dist-info → nucliadb_utils-5.1.2.post1364.dist-info}/zip-safe
RENAMED
File without changes
|