Skip to content

Commit 68f5012

Browse files
Update webui/utils/cache.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 72d861e commit 68f5012

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webui/utils/cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def setup_workspace(folder):
2020

2121

2222
def on_rm_error(func, path, exc_info):
23-
os.chmod(path, stat.S_IWRITE)
23+
st = os.stat(path)
24+
os.chmod(path, st.st_mode | stat.S_IWRITE)
2425

2526
time.sleep(0.5)
2627
try:

0 commit comments

Comments
 (0)