Title: {Pairing, Authentication}Status.__getattr__ raises KeyError instead of AttributeError · Issue #32 · toopher/toopher-python · GitHub
Open Graph Title: {Pairing, Authentication}Status.__getattr__ raises KeyError instead of AttributeError · Issue #32 · toopher/toopher-python
X Title: {Pairing, Authentication}Status.__getattr__ raises KeyError instead of AttributeError · Issue #32 · toopher/toopher-python
Description: We use __getattr__ to make accessing the response data nicer, so __getattr__(self, name) returns self._raw_data[name]. However, if name isn’t in _raw_data, a KeyError will be raised. I think most Python programmers would expect an Attrib...
Open Graph Description: We use __getattr__ to make accessing the response data nicer, so __getattr__(self, name) returns self._raw_data[name]. However, if name isn’t in _raw_data, a KeyError will be raised. I think most P...
X Description: We use __getattr__ to make accessing the response data nicer, so __getattr__(self, name) returns self._raw_data[name]. However, if name isn’t in _raw_data, a KeyError will be raised. I think most P...
Opengraph URL: https://github.com/toopher/toopher-python/issues/32
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"{Pairing, Authentication}Status.__getattr__ raises KeyError instead of AttributeError","articleBody":"We use `__getattr__` to make accessing the response data nicer, so `__getattr__(self, name)` returns `self._raw_data[name]`. However, if `name` isn’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, because `auth_request.requester.id` is way less pretty than `auth_request.requester['id']`.\n","author":{"url":"https://github.com/trdarr","@type":"Person","name":"trdarr"},"datePublished":"2014-08-05T20:10:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/32/toopher-python/issues/32"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c0c529b0-1373-7a35-cf80-1e6f5cd7a608 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6E2:15F3A5:AAF56D:E510CD:6A5B8E6D |
| html-safe-nonce | c5d9306fc6c7937dbbc2e6334352ab4b5edb53592274a72f3a558824686f9e2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkUyOjE1RjNBNTpBQUY1NkQ6RTUxMENEOjZBNUI4RTZEIiwidmlzaXRvcl9pZCI6IjI1NzE2NjgyNzM2MzgzNzkxMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5c16a1a601050a849d89e44f3447603e6b6a75c237b9c48d6802af1a3b90fb6e |
| hovercard-subject-tag | issue:39559922 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/toopher/toopher-python/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/347ddf19f01dd8096f6d9650b0937fef48e6b742bbb6ae6be6fc5d9626bf5754/toopher/toopher-python/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/347ddf19f01dd8096f6d9650b0937fef48e6b742bbb6ae6be6fc5d9626bf5754/toopher/toopher-python/issues/32 |
| og:image:alt | We use __getattr__ to make accessing the response data nicer, so __getattr__(self, name) returns self._raw_data[name]. However, if name isn’t in _raw_data, a KeyError will be raised. I think most P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trdarr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/toopher/toopher-python git https://github.com/toopher/toopher-python.git |
| octolytics-dimension-user_id | 2179706 |
| octolytics-dimension-user_login | toopher |
| octolytics-dimension-repository_id | 7061742 |
| octolytics-dimension-repository_nwo | toopher/toopher-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7061742 |
| octolytics-dimension-repository_network_root_nwo | toopher/toopher-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width