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

[#471] Safely get line_number from PotentialSecret #472

Merged
merged 1 commit into from
Aug 1, 2021

Conversation

js-truework
Copy link
Contributor

This is a relatively naive approach to solving the issue in #471. I looked at the PotentialSecret class and it very clearly has a default value of 0 for line_number. But alas, intermittently it does not. So this should safely fall back to 0 if line_number isn't present.

Closes #471 (I think)

This is a relatively naive approach to solving the issue in Yelp#471. I looked at the PotentialSecret class and it very clearly has a default value of 0 for `line_number`. But alas, intermittently it does not. So this should safely fall back to 0 if `line_number` isn't present.
@KevinHock
Copy link
Collaborator

I'll review this one this weekend hopefully -- sorry for the delay.

Copy link
Collaborator

@KevinHock KevinHock left a comment

Choose a reason for hiding this comment

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

Thanks a bunch for making this @js-truework 👍🏼

@KevinHock KevinHock merged commit a1ab77d into Yelp:master Aug 1, 2021
KevinHock added a commit that referenced this pull request Aug 1, 2021
PotentialSecret is not a dictionary, so do getattr and not .get
Fixes #472
@KevinHock KevinHock mentioned this pull request Aug 1, 2021
KevinHock added a commit that referenced this pull request Aug 1, 2021
@KevinHock
Copy link
Collaborator

Hey @js-truework, if you use the master branch, does it work?

@js-truework
Copy link
Contributor Author

Hey @js-truework, if you use the master branch, does it work?

I'll check it out. It'll be hard to say definitively until I've been able to run it a bunch of times, since it was an intermittent bug to begin with.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PotentialSecret failure with slim baseline + pre-commit hook
2 participants