mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 11:08:55 +00:00
fix(cli): handle exception in remove() (#31982)
This commit is contained in:
parent
e2dc36b126
commit
5a4c0c0816
@ -334,8 +334,8 @@ def remove(
|
||||
|
||||
shutil.rmtree(package_dir)
|
||||
remove_deps.append(api_path)
|
||||
except Exception: # noqa: S110
|
||||
pass
|
||||
except OSError as exc:
|
||||
typer.echo(f"Failed to remove {api_path}: {exc}")
|
||||
|
||||
try:
|
||||
remove_dependencies_from_pyproject_toml(project_pyproject, remove_deps)
|
||||
|
Loading…
Reference in New Issue
Block a user