nucliadb-utils 6.3.5.post3904__py3-none-any.whl → 6.3.5.post3909__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/gcs.py +3 -7
- {nucliadb_utils-6.3.5.post3904.dist-info → nucliadb_utils-6.3.5.post3909.dist-info}/METADATA +3 -3
- {nucliadb_utils-6.3.5.post3904.dist-info → nucliadb_utils-6.3.5.post3909.dist-info}/RECORD +5 -5
- {nucliadb_utils-6.3.5.post3904.dist-info → nucliadb_utils-6.3.5.post3909.dist-info}/WHEEL +0 -0
- {nucliadb_utils-6.3.5.post3904.dist-info → nucliadb_utils-6.3.5.post3909.dist-info}/top_level.txt +0 -0
nucliadb_utils/storages/gcs.py
CHANGED
@@ -544,18 +544,14 @@ class GCSStorage(Storage):
|
|
544
544
|
url = "{}/{}/o/{}".format(self.object_base_url, bucket_name, quote_plus(uri))
|
545
545
|
headers = await self.get_access_headers()
|
546
546
|
async with self.session.delete(url, headers=headers) as resp:
|
547
|
+
if resp.status in (200, 204, 404):
|
548
|
+
return
|
547
549
|
try:
|
548
550
|
data = await resp.json()
|
549
551
|
except Exception:
|
550
552
|
text = await resp.text()
|
551
553
|
data = {"text": text}
|
552
|
-
|
553
|
-
logger.warning(
|
554
|
-
f"Attempt to delete not found gcloud: {data}, status: {resp.status}",
|
555
|
-
exc_info=True,
|
556
|
-
)
|
557
|
-
elif resp.status not in (200, 204):
|
558
|
-
raise GoogleCloudException(f"{resp.status}: {json.dumps(data)}")
|
554
|
+
raise GoogleCloudException(f"{resp.status}: {json.dumps(data)}")
|
559
555
|
else:
|
560
556
|
raise AttributeError("No valid uri")
|
561
557
|
|
{nucliadb_utils-6.3.5.post3904.dist-info → nucliadb_utils-6.3.5.post3909.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 6.3.5.
|
3
|
+
Version: 6.3.5.post3909
|
4
4
|
Summary: NucliaDB util library
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
6
6
|
License: AGPL
|
@@ -27,8 +27,8 @@ Requires-Dist: nats-py[nkeys]>=2.6.0
|
|
27
27
|
Requires-Dist: PyNaCl
|
28
28
|
Requires-Dist: pyjwt>=2.4.0
|
29
29
|
Requires-Dist: mrflagly>=0.2.9
|
30
|
-
Requires-Dist: nucliadb-protos>=6.3.5.
|
31
|
-
Requires-Dist: nucliadb-telemetry>=6.3.5.
|
30
|
+
Requires-Dist: nucliadb-protos>=6.3.5.post3909
|
31
|
+
Requires-Dist: nucliadb-telemetry>=6.3.5.post3909
|
32
32
|
Provides-Extra: cache
|
33
33
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
34
34
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
@@ -41,7 +41,7 @@ nucliadb_utils/nuclia_usage/utils/kb_usage_report.py,sha256=6lLuxCCPQVn3dOuZNL5T
|
|
41
41
|
nucliadb_utils/storages/__init__.py,sha256=5Qc8AUWiJv9_JbGCBpAn88AIJhwDlm0OPQpg2ZdRL4U,872
|
42
42
|
nucliadb_utils/storages/azure.py,sha256=o2wPS04J69wkrq4C5cdjXV6H1ClLjaRxcIuufeAlYGk,16704
|
43
43
|
nucliadb_utils/storages/exceptions.py,sha256=GOPKH-F3dPTfHEkwGNfVkSfF70eWJJXjI83yccw9WpA,2501
|
44
|
-
nucliadb_utils/storages/gcs.py,sha256=
|
44
|
+
nucliadb_utils/storages/gcs.py,sha256=XbtX0Lt3GO7kzuJ1E5CdazlpSqjU46Bhhezq32VQUok,29041
|
45
45
|
nucliadb_utils/storages/local.py,sha256=2aCHpZymORG_dUc1FDq0VFcgQulu0w2pZiUaj9dphFs,11686
|
46
46
|
nucliadb_utils/storages/nuclia.py,sha256=vEv94xAT7QM2g80S25QyrOw2pzvP2BAX-ADgZLtuCVc,2097
|
47
47
|
nucliadb_utils/storages/object_store.py,sha256=2PueRP5Q3XOuWgKhj6B9Kp2fyBql5np0T400YRUbqn4,4535
|
@@ -57,7 +57,7 @@ nucliadb_utils/tests/gcs.py,sha256=MBMzn_UHU5SU6iILuCsB5zU4umhNcaCw_MKrxZhwvOc,4
|
|
57
57
|
nucliadb_utils/tests/local.py,sha256=cxIfPrKuqs5Ef0nbrVYQQAH2mwc4E0iD9bC2sWegS-c,1934
|
58
58
|
nucliadb_utils/tests/nats.py,sha256=RWHjwqq5esuO7OFbP24yYX1cXnpPLcWJwDUdmwCpH28,1897
|
59
59
|
nucliadb_utils/tests/s3.py,sha256=DACUh3HvgH3BchKFZ9R7RFUzsrg3v9A-cxTcXx4nmvA,3734
|
60
|
-
nucliadb_utils-6.3.5.
|
61
|
-
nucliadb_utils-6.3.5.
|
62
|
-
nucliadb_utils-6.3.5.
|
63
|
-
nucliadb_utils-6.3.5.
|
60
|
+
nucliadb_utils-6.3.5.post3909.dist-info/METADATA,sha256=y3PgWrkP4OSPNp64JuuH5J3D_de7ZHBdqBi-MZqBw2A,2205
|
61
|
+
nucliadb_utils-6.3.5.post3909.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
62
|
+
nucliadb_utils-6.3.5.post3909.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
63
|
+
nucliadb_utils-6.3.5.post3909.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-6.3.5.post3904.dist-info → nucliadb_utils-6.3.5.post3909.dist-info}/top_level.txt
RENAMED
File without changes
|