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

Fix duplicate attestations error message to be a str, not a tuple #340

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

dimaqq
Copy link

@dimaqq dimaqq commented Feb 20, 2025

I imagine someone refactored and moved message out int a variable, but forgot that in that case comma after argument is significant.

Fixes #339

I imagine someone refactored and moved message out int a variable, but forgot that in that case comma after argument is significant.

Fixes pypa#339
dimaqq referenced this pull request Feb 20, 2025
This patch moves said check out of the signing loop and performs the
check early in the process. It is then able to report multiple
problems in a single error.
@webknjaz
Copy link
Member

moved message out int a variable,

Almost: #315. My bad.

@webknjaz webknjaz changed the title fix: error message is a string, not a tuple Fix duplicate attestations error message to be a str, not a tuple Feb 20, 2025
@webknjaz webknjaz merged commit c5ff34d into pypa:release/v1 Feb 20, 2025
7 checks passed
webknjaz added a commit that referenced this pull request Feb 20, 2025
This reverts commit c5ff34d, reversing
changes made to 76f52bc.
@webknjaz
Copy link
Member

Reverted because this was made against the wrong branch.

@dimaqq dimaqq deleted the patch-1 branch February 21, 2025 00:09
@dimaqq
Copy link
Author

dimaqq commented Feb 21, 2025

Oh, sorry!

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.

attestations: AttributeError: 'tuple' object has no attribute 'replace'
2 participants