Skip to content

Commit 5a4c0c0

Browse files
fix(cli): handle exception in remove() (#31982)
1 parent e2dc36b commit 5a4c0c0

File tree

1 file changed

+2
-2
lines changed
  • libs/cli/langchain_cli/namespaces

1 file changed

+2
-2
lines changed

libs/cli/langchain_cli/namespaces/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ def remove(
334334

335335
shutil.rmtree(package_dir)
336336
remove_deps.append(api_path)
337-
except Exception: # noqa: S110
338-
pass
337+
except OSError as exc:
338+
typer.echo(f"Failed to remove {api_path}: {exc}")
339339

340340
try:
341341
remove_dependencies_from_pyproject_toml(project_pyproject, remove_deps)

0 commit comments

Comments
 (0)