Skip to content

Commit 9e920c0

Browse files
committed
fix: runtime error handliing
1 parent b8a1501 commit 9e920c0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-mcp"
3-
version = "0.0.104"
3+
version = "0.0.105"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath_mcp/_cli/_runtime/_runtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ async def _register(self) -> None:
402402
# Only proceed if initialization was successful
403403
tools_result = await session.list_tools()
404404
# logger.info(tools_result)
405-
except asyncio.TimeoutError:
405+
except Exception:
406406
logger.error("Initialization timed out")
407407
# Capture stderr output here, after the timeout
408408
stderr_temp.seek(0)
@@ -418,7 +418,7 @@ async def _register(self) -> None:
418418
# Now that we're outside the context managers, check if initialization succeeded
419419
if not initialization_successful:
420420
await self._on_runtime_abort()
421-
error_message = "The server process failed to initialize. Verify environment variables are set correctly."
421+
error_message = "The server process failed to initialize."
422422
if server_stderr_output:
423423
error_message += f"\nServer error output:\n{server_stderr_output}"
424424
raise UiPathMcpRuntimeError(

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)