Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
There was an error while loading. Please reload this page.
We use
__getattr__to make accessing the response data nicer, so__getattr__(self, name)returnsself._raw_data[name]. However, ifnameisn’t in_raw_data, a KeyError will be raised. I think most Python programmers would expect an AttributeError. We should probably also support nested attributes, becauseauth_request.requester.idis way less pretty thanauth_request.requester['id'].