Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/uipath_langchain/runtime/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def _get_connection_string(self) -> str:
):
# If not resuming and no job id, delete the previous state file
if os.path.exists(path):
os.remove(path)
try:
os.remove(path)
except OSError:
pass # File may be held by another process
Comment thread
cristipufu marked this conversation as resolved.
Comment thread
cristipufu marked this conversation as resolved.
os.makedirs(self.context.runtime_dir, exist_ok=True)
return path

Expand Down