Skip to content

item.pop("partition") leads to KeyError after retry #364

@Zaczero

Description

@Zaczero

https://github.com/stac-utils/pgstac/blob/13b7d8d3b4d2897d5450cf92d10910d40b4c4803/src/pypgstac/src/pypgstac/load.py#L329C29-L329C50

This piece of code mutates data in place, and after the first @retry, when #363 is fixed, this will lead to a KeyError because partition was already popped. I also don't see much reason for mutating this data.

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