uipath 2.0.49__py3-none-any.whl → 2.0.50__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 uipath might be problematic. Click here for more details.

@@ -390,15 +390,10 @@ class BucketsService(FolderContext, BaseService):
390
390
  url=spec.endpoint,
391
391
  params=spec.params,
392
392
  headers=spec.headers,
393
- )
394
- except Exception as e:
393
+ ).json()["value"][0]
394
+ except (KeyError, IndexError) as e:
395
395
  raise Exception(f"Bucket with name '{name}' not found") from e
396
- try:
397
- return Bucket.model_validate(response.json()["value"][0])
398
- except KeyError as e:
399
- raise Exception(
400
- f"Error while deserializing bucket with name '{name}'"
401
- ) from e
396
+ return Bucket.model_validate(response)
402
397
 
403
398
  @infer_bindings()
404
399
  @traced(name="buckets_retrieve", run_type="uipath")
@@ -439,21 +434,17 @@ class BucketsService(FolderContext, BaseService):
439
434
  )
440
435
 
441
436
  try:
442
- response = await self.request_async(
443
- spec.method,
444
- url=spec.endpoint,
445
- params=spec.params,
446
- headers=spec.headers,
447
- )
448
- except Exception as e:
449
- raise Exception(f"Bucket with name {name} not found") from e
450
-
451
- try:
452
- return Bucket.model_validate(response.json()["value"][0])
453
- except KeyError as e:
454
- raise Exception(
455
- f"Error while deserializing bucket with name '{name}'"
456
- ) from e
437
+ response = (
438
+ await self.request_async(
439
+ spec.method,
440
+ url=spec.endpoint,
441
+ params=spec.params,
442
+ headers=spec.headers,
443
+ )
444
+ ).json()["value"][0]
445
+ except (KeyError, IndexError) as e:
446
+ raise Exception(f"Bucket with name '{name}' not found") from e
447
+ return Bucket.model_validate(response)
457
448
 
458
449
  @property
459
450
  def custom_headers(self) -> Dict[str, str]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.0.49
3
+ Version: 2.0.50
4
4
  Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
5
5
  Project-URL: Homepage, https://uipath.com
6
6
  Project-URL: Repository, https://github.com/UiPath/uipath-python
@@ -44,7 +44,7 @@ uipath/_services/_base_service.py,sha256=i4f-4rkORhEIa6EWiSBUGlfFftAqKrRdjcV7fCG
44
44
  uipath/_services/actions_service.py,sha256=DaWXbbLHVC-bVtxhMBm3Zfhx6IP8s9mviOTgK5g_CAQ,15883
45
45
  uipath/_services/api_client.py,sha256=1hYLc_90dQzCGnqqirEHpPqvL3Gkv2sSKoeOV_iTmlk,2903
46
46
  uipath/_services/assets_service.py,sha256=TXuL8dHCVLHb3AC2QixrwGz0Rjs70GHKTKg-S20sA_U,11115
47
- uipath/_services/buckets_service.py,sha256=eQgnc97A2iEFqZKDyp0b_udpRIWXPBGUbY7r9BMb-tg,17876
47
+ uipath/_services/buckets_service.py,sha256=VfgupGPeOFH3kBG6LJa7cWkliOuVBgdSEfApnKOcoM4,17619
48
48
  uipath/_services/connections_service.py,sha256=qh-HNL_GJsyPUD0wSJZRF8ZdrTE9l4HrIilmXGK6dDk,4581
49
49
  uipath/_services/context_grounding_service.py,sha256=wRYPnpTFeZunS88OggRZ9qRaILHKdoEP_6VUCaF-Xw0,24097
50
50
  uipath/_services/folder_service.py,sha256=HtsBoBejvMuIZ-9gocAG9B8uKOFsAAD4WUozta-isXk,1673
@@ -80,8 +80,8 @@ uipath/tracing/__init__.py,sha256=GimSzv6qkCOlHOG1WtjYKJsZqcXpA28IgoXfR33JhiA,13
80
80
  uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
81
81
  uipath/tracing/_traced.py,sha256=GFxOp73jk0vGTN_H7YZOOsEl9rVLaEhXGztMiYKIA-8,16634
82
82
  uipath/tracing/_utils.py,sha256=5SwsTGpHkIouXBndw-u8eCLnN4p7LM8DsTCCuf2jJgs,10165
83
- uipath-2.0.49.dist-info/METADATA,sha256=x4E5DM2Dw6WstsF8xCyaiIise37CE8JgkJf0IUwctsA,6254
84
- uipath-2.0.49.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
85
- uipath-2.0.49.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
86
- uipath-2.0.49.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
87
- uipath-2.0.49.dist-info/RECORD,,
83
+ uipath-2.0.50.dist-info/METADATA,sha256=NfFb9aJR0hgY373mnPHnmt4xaiyyUHqWDIXhkbRoz_o,6254
84
+ uipath-2.0.50.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
85
+ uipath-2.0.50.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
86
+ uipath-2.0.50.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
87
+ uipath-2.0.50.dist-info/RECORD,,