Skip to content
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

fix(generic): check for attribute id before using it #1452

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

b1rger
Copy link
Contributor

@b1rger b1rger commented Nov 27, 2024

Some models do not have an id attribute, therefore it makes sense to
check for its existence before using it in the repr string.

Closes: #1450

Some models do not have an `id` attribute, therefore it makes sense to
check for its existence before using it in the __repr__ string.

Closes: #1450
@b1rger b1rger marked this pull request as ready for review November 27, 2024 06:40
@b1rger b1rger merged commit 076e9f3 into main Nov 27, 2024
14 checks passed
@b1rger b1rger deleted the birger/1450-id branch November 27, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError 'APISHistoricalRecords' object has no attribute 'id'
1 participant