Skip to content

MicrodataObject.get_links can return None incorrectly #7

@barkmadley

Description

@barkmadley

If allow_multi is True, and there are multiple links for a particular relation then the code will fall through to the final return statement:
https://github.com/Comcast/htmlapi-client-python/blob/master/htmlapi_client.py#L278

This returns "out" which is undefined in this function. I believe it should be "links".

This looks like a copy/paste bug from Form._get_params, which does return "out".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions