Skip to content

Commit 3973e84

Browse files
cristipufuclaude
andcommitted
fix: pass exception instance instead of type in faulted trigger error handler
The __exit__ method was passing exc_type (the class) to from_resume_trigger_error() instead of exc_val (the instance), causing an AttributeError when accessing .message on the class. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9983daf commit 3973e84

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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-runtime"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/runtime/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
206206
match exc_val:
207207
case UiPathFaultedTriggerError():
208208
error_info = UiPathRuntimeError.from_resume_trigger_error(
209-
exc_type
209+
exc_val
210210
).error_info
211211
case UiPathBaseRuntimeError():
212212
error_info = exc_val.error_info

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)