Skip to content

Commit 0dfe310

Browse files
committed
fix: handle early debug quit
1 parent 46764ed commit 0dfe310

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/uipath/runtime/debug/runtime.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ async def _stream_and_debug(
121121
logger.warning(
122122
"Initial resume wait timed out after 60s, assuming debug bridge disconnected"
123123
)
124+
yield UiPathRuntimeResult(status=UiPathRuntimeStatus.FAULTED)
125+
return
126+
except UiPathDebugQuitError:
127+
logger.info("Debug session quit by user before execution started")
124128
yield UiPathRuntimeResult(status=UiPathRuntimeStatus.SUCCESSFUL)
125129
return
126130

0 commit comments

Comments
 (0)