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

weak_cryptographic_key assumes positional arg #930

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Jul 11, 2022

The weak_cryptographic_key assumes a positional arg when it doesn't
find a value for the keyword arg. The issue is that sometimes the
keyword arg is a ast.Call or other undeterminate values. And as
a result throws a Traceback.

This change will make the plugin a little more robust so it doesn't
throw the Traceback. It won't be able determine the value of the
curve in this case, but can ignore it.

Fixes #545

Signed-off-by: Eric Brown eric_wade_brown@yahoo.com

@ericwb ericwb force-pushed the weak_crypto_keyword branch from 27d6652 to 30ae1ca Compare July 11, 2022 21:43
The weak_cryptographic_key assumes a positional arg when it doesn't
find a value for the keyword arg. The issue is that sometimes the
keyword arg is a ast.Call or other undeterminate values. And as
a result throws a Traceback.

This change will make the plugin a little more robust so it doesn't
throw the Traceback. It won't be able determine the value of the
curve in this case, but can ignore it.

Fixes PyCQA#545

Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
@ericwb ericwb force-pushed the weak_crypto_keyword branch from 30ae1ca to 05d2763 Compare July 11, 2022 21:45
@ericwb ericwb merged commit 521aa00 into PyCQA:main Jul 12, 2022
@ericwb ericwb deleted the weak_crypto_keyword branch July 12, 2022 01:02
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.

IndexError: list index out of range
2 participants