Skip to content

accessing domain records causes: TypeError: 'PaginatedList' object is not callable #185

@muradm

Description

@muradm

According to documentation, seems like it should work like this:

client = ...
domain = client.domains(Domain.domain == domain)[0]
for record in domain.records():
    ...

However it throws TypeError: 'PaginatedList' object is not callable, but this works:

client = ...
domain = client.domains(Domain.domain == domain)[0]
for record in domain.records:
    ...

Note that, above is without call paranthesis.

Metadata

Metadata

Assignees

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