htmlapi-client-python icon indicating copy to clipboard operation
htmlapi-client-python copied to clipboard

MicrodataObject.get_links can return None incorrectly

Open barkmadley opened this issue 12 years ago • 0 comments

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".

barkmadley avatar Nov 28 '13 12:11 barkmadley