Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/uipath/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath"
version = "2.10.48"
version = "2.10.49"
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
9 changes: 7 additions & 2 deletions packages/uipath/src/uipath/_cli/_chat/_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def _extract_error_info(error: Exception) -> tuple[str, str]:
message = title or detail or _CAS_ERROR_MESSAGES[CASErrorId.DEFAULT_ERROR]
return code, message

return CASErrorId.DEFAULT_ERROR, _CAS_ERROR_MESSAGES[CASErrorId.DEFAULT_ERROR]
return CASErrorId.DEFAULT_ERROR, str(error) or _CAS_ERROR_MESSAGES[
CASErrorId.DEFAULT_ERROR
]


def _resolve_cas_error(error: Exception) -> tuple[str, str]:
Expand All @@ -89,7 +91,10 @@ def _resolve_cas_error(error: Exception) -> tuple[str, str]:
error_code, error_message = _extract_error_info(error)
suffix = error_code.rsplit(".", 1)[-1] if error_code else ""
cas_error_id = _CAS_ERROR_ID_MAP.get(suffix, CASErrorId.DEFAULT_ERROR)
cas_message = _CAS_ERROR_MESSAGES.get(cas_error_id) or error_message
if cas_error_id == CASErrorId.DEFAULT_ERROR:
cas_message = error_message
else:
cas_message = _CAS_ERROR_MESSAGES.get(cas_error_id) or error_message
return cas_error_id, cas_message


Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading