Skip to content

The assertion message in create_bucket prints the requested name twice #656

Open

Description

@sophiecarreras

What happens

The assertion that checks the name returned by the server formats its message as {name} != {name}, so the returned name never appears. If the assertion fails the message reads like foo != foo.

Where

b2sdk/_internal/api.py:266-268 (B2Api.create_bucket).

Why it matters

Impact: Docs and messages, loud only when the assertion fails. Severity: Low, because only the wording of an assertion message is wrong and nothing depends on it.

How to check

Read api.py:268; the second placeholder should be {bucket.name}. Found by reading the code, not reproduced.

Version

Seen at v2.13.4. Present on the default branch: present.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions