Skip to content

taxonomies.get("c").machinetags_expanded() AttributeError: 'NoneType' #5

@jaegeral

Description

@jaegeral

If you try the following:

from pytaxonomies import Taxonomies
taxonomies = Taxonomies()
taxonomies.get("c").machinetags_expanded()

you get:

ile "<ipython-input-13-21c1a4715166>", line 1, in <module>
    taxonomies.get("c").machinetags_expanded()
AttributeError: 'NoneType' object has no attribute 'machinetags_expanded'

Imho I would expect all circl results (as it starts with c) or a proper error message or introduce a new method:

from pytaxonomies import Taxonomies
taxonomies = Taxonomies()
taxonomies.search("c").machinetags_expanded()

And then return the closest match (but then I would love it also searching not only in the keys but also values)

Hope that make sense.

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