Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Fix incorrect id resolution#68

Open
jasonchoimtt wants to merge 2 commits intopallets-eco:masterfrom
jasonchoimtt:master
Open

Fix incorrect id resolution#68
jasonchoimtt wants to merge 2 commits intopallets-eco:masterfrom
jasonchoimtt:master

Conversation

@jasonchoimtt
Copy link
Copy Markdown

The current code does not correctly resolve the id from the intended order: attribute -> key, but instead will raise an AttributeError if there is no such attribute. It will also not accept a falsy .id attribute, e.g. 0. This patch fixes the issue.

@pall-valmundsson
Copy link
Copy Markdown

This is addressed in #63 as well.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants