python-openid icon indicating copy to clipboard operation
python-openid copied to clipboard

ax.AXKeyValueMessage.getSingle will never raise KeyError

Open evgeni opened this issue 13 years ago • 0 comments

https://github.com/openid/python-openid/blob/master/openid/extensions/ax.py#L546 says: @raises KeyError: If the attribute was not sent in this response However, KeyError is never raised explicitely and values = self.data.get(type_uri) will return None when type_uri isn't found in data.

Either documentation or code should be edited :)

evgeni avatar Jul 19 '11 12:07 evgeni