Skip to content

attestations: AttributeError: 'tuple' object has no attribute 'replace' #339

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

Closed
dimaqq opened this issue Feb 20, 2025 · 0 comments · Fixed by #340
Closed

attestations: AttributeError: 'tuple' object has no attribute 'replace' #339

dimaqq opened this issue Feb 20, 2025 · 0 comments · Fixed by #340
Labels
bug Something isn't working

Comments

@dimaqq
Copy link

dimaqq commented Feb 20, 2025

Traceback (most recent call last):
  File "/app/attestations.py", line 149, in <module>
    main()
  File "/app/attestations.py", line 129, in main
    dist_to_attestation_map = compose_attestation_mapping(
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/attestations.py", line 103, in compose_attestation_mapping
    assert_attestations_do_not_pre_exist(dist_to_attestation_map)
  File "/app/attestations.py", line 88, in assert_attestations_do_not_pre_exist
    die(error_message)
  File "/app/attestations.py", line 45, in die
    msg = msg.replace('\n', '%0A')
          ^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'replace'

I've no idea how it got to this, but I've hit this error in my CI:
https://github.com/dimaqq/otlp-test-data/actions/runs/13430069816/job/37519980376

dimaqq added a commit to dimaqq/gh-action-pypi-publish that referenced this issue 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 pypa#339
@webknjaz webknjaz added the bug Something isn't working label Feb 20, 2025
webknjaz added a commit that referenced this issue Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants