Skip to content

Commit 7393eb0

Browse files
author
Chad Smith
authored
remove unnecessary check for package after inject is complete (#197)
1 parent bdcfc3e commit 7393eb0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pipx/commands.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,6 @@ def inject(
420420
venv = Venv(venv_dir, verbose=verbose)
421421
venv.install_package(package, pip_args)
422422

423-
if venv.get_venv_metadata_for_package(package).package_version is None:
424-
raise PipxError(f"Could not find package {package}. Is the name correct?")
425-
426423
if include_binaries:
427424
_run_post_install_actions(venv, package, LOCAL_BIN_DIR, venv_dir, include_deps)
428425

0 commit comments

Comments
 (0)