Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Revert create_project_ssh_key error work-arounds #105

@displague

Description

@displague

It should now be safe to remove the workaround to #78:

except ResponseError as e:
if e.response.status_code == 422:
# Try to pluck the SSH key from the listing API
keys = [
key
for key in self.list_ssh_keys()
if key.key.strip() == public_key.strip()
]
if len(keys) == 1:
return keys.pop()
raise

The function should be returned to its original composition from #80.

Other changes from #80 can be retained.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions