Skip to content

Commit 11bb883

Browse files
committed
try to fix unexpected argument error
1 parent db7f207 commit 11bb883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autointent/context/vector_index_client/vector_index_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def exists(self, model_name: str) -> bool:
109109
return self._get_index_dirpath(model_name) is not None
110110

111111
def delete_db(self) -> None:
112-
shutil.rmtree(self.db_dir, onexc=redo_with_write)
112+
shutil.rmtree(self.db_dir, onerror=redo_with_write) # type: ignore[call-arg]
113113

114114

115115
class NonExistingIndexError(Exception):
@@ -118,6 +118,6 @@ def __init__(self, message: str = "non-existent index was requested") -> None:
118118
super().__init__(message)
119119

120120

121-
def redo_with_write(redo_func: Callable, path: Path, err: Exception) -> None: # noqa: ARG001
121+
def redo_with_write(redo_func: Callable, path: Path, err: Exception) -> None: # noqa: ARG001 # type: ignore[type-arg]
122122
Path.chmod(path, stat.S_IWRITE)
123123
redo_func(path)

0 commit comments

Comments
 (0)