Skip to content

Commit

Permalink
fix: disable printing resolver verbose
Browse files Browse the repository at this point in the history
The resolver does not have any output, and it
just printed a weired "False" which was hard to
grasp.

Signed-off-by: Oz Tiram <[email protected]>
  • Loading branch information
oz123 committed Jan 14, 2025
1 parent 13c13ed commit 69d2331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pipenv/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ def main(argv=None):
os.environ["PYTHONUNBUFFERED"] = "1"
parsed = handle_parsed_args(parsed)
if not parsed.verbose:
print(parsed.verbose)
logging.getLogger("pipenv").setLevel(logging.WARN)
_main(
parsed.pre,
Expand Down
4 changes: 2 additions & 2 deletions pipenv/utils/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def resolve(self):
try:
results = resolver.resolve(self.constraints, check_supported_wheels=False)
except InstallationError as e:
raise ResolutionFailure(message=str(e))
raise ResolutionFailure(message=e)
else:
self.results = set(results.all_requirements)
self.resolved_tree.update(self.results)
Expand Down Expand Up @@ -765,7 +765,7 @@ def resolve(cmd, st, project):
out = c.stdout.read()
if returncode != 0:
st.console.print(environments.PIPENV_SPINNER_FAIL_TEXT.format("Locking Failed!"))
err.print(out.strip())
# err.print(out.strip())
if not is_verbose:
err.print(errors)
raise RuntimeError("Failed to lock Pipfile.lock!")
Expand Down

0 comments on commit 69d2331

Please sign in to comment.