Skip to content

Commit

Permalink
Logging at INFO level
Browse files Browse the repository at this point in the history
Also move after exception
  • Loading branch information
jamesmyatt authored Feb 15, 2024
1 parent a258b53 commit 8ea479b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pipx/commands/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ def inject(
packages = list(package_specs)
for filename in requirement_files:
packages.extend(parse_requirements(filename))
logger.debug("Injecting packages: %r", sorted(packages))

if not packages:
raise PipxError("No packages have been specified.")
logger.info("Injecting packages: %r", sorted(packages))

# Inject packages
if not include_apps and include_dependencies:
Expand Down

0 comments on commit 8ea479b

Please sign in to comment.