Skip to content

Commit f7ea61b

Browse files
authored
Merge pull request #20 from UiPath/fix/debug_runtime_early_quit
fix: handle early debug quit
2 parents 46764ed + 0dfe310 commit f7ea61b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)