Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't print stacktrace due to invalid req #5923

Merged
merged 1 commit into from
Nov 8, 2018

Conversation

psinghsodhi
Copy link
Contributor

@psinghsodhi psinghsodhi commented Oct 26, 2018

Fixes Toward #5147

Closes #5170

@pradyunsg
Copy link
Member

Thanks for the PR! :)

I don't think this is in itself enough to fix #5147, but it's definitely an improvement.

@@ -258,7 +257,7 @@ def install_req_from_line(
elif '=' in req and not any(op in req for op in operators):
add_msg = "= is not a valid operator. Did you mean == ?"
else:
add_msg = traceback.format_exc()
add_msg = ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, I'd say we'd llike an additional logger.debug() to have the traceback in verbose mode

@pradyunsg
Copy link
Member

I'll go ahead and merge this; will follow up with more improvements here.

@pradyunsg pradyunsg merged commit 28cfd7d into pypa:master Nov 8, 2018
@pradyunsg pradyunsg added this to the 19.0 milestone Jan 3, 2019
@lock
Copy link

lock bot commented May 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants