We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb5f31b commit 9a58c20Copy full SHA for 9a58c20
src/uipath_langchain/runtime/factory.py
@@ -76,7 +76,10 @@ def _get_connection_string(self) -> str:
76
):
77
# If not resuming and no job id, delete the previous state file
78
if os.path.exists(path):
79
- os.remove(path)
+ try:
80
+ os.remove(path)
81
+ except OSError:
82
+ pass # File may be held by another process
83
os.makedirs(self.context.runtime_dir, exist_ok=True)
84
return path
85
0 commit comments