nucliadb-utils 6.3.5.post3908__py3-none-any.whl → 6.3.5.post3911__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.

Potentially problematic release.


This version of nucliadb-utils might be problematic. Click here for more details.

@@ -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
- if resp.status == 404:
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_utils
3
- Version: 6.3.5.post3908
3
+ Version: 6.3.5.post3911
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.post3908
31
- Requires-Dist: nucliadb-telemetry>=6.3.5.post3908
30
+ Requires-Dist: nucliadb-protos>=6.3.5.post3911
31
+ Requires-Dist: nucliadb-telemetry>=6.3.5.post3911
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=KR267zRvBBjT0ksxcfCCz0CmqPD8W-Kj3_lWZXWFg0Q,29249
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.post3908.dist-info/METADATA,sha256=39pcAFOIMOxZ_xxKyMHhCKZYX9fVlK27P_1rt1u5GwQ,2205
61
- nucliadb_utils-6.3.5.post3908.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
62
- nucliadb_utils-6.3.5.post3908.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
63
- nucliadb_utils-6.3.5.post3908.dist-info/RECORD,,
60
+ nucliadb_utils-6.3.5.post3911.dist-info/METADATA,sha256=lPuZUdFYOJbzBspYD3GlxHbirhLOvBGu-Dcir48ALvs,2205
61
+ nucliadb_utils-6.3.5.post3911.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
62
+ nucliadb_utils-6.3.5.post3911.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
63
+ nucliadb_utils-6.3.5.post3911.dist-info/RECORD,,