diff --git a/linode/login_client.py b/linode/login_client.py index 6fd7c063c..4c5b3a5fb 100644 --- a/linode/login_client.py +++ b/linode/login_client.py @@ -363,7 +363,7 @@ def oauth_redirect(): "client_secret": self.client_secret }) if r.status_code != 200: - raise ApiError("OAuth token exchange failed", r) + raise ApiError("OAuth token exchange failed", status=r.status_code, json=r.json()) token = r.json()["access_token"] scopes = OAuthScopes.parse(r.json()["scopes"]) return token, scopes diff --git a/linode/objects/profile/profile.py b/linode/objects/profile/profile.py index 7a8c99844..76535961f 100644 --- a/linode/objects/profile/profile.py +++ b/linode/objects/profile/profile.py @@ -12,6 +12,7 @@ class Profile(Base): properties = { 'username': Property(identifier=True), + 'uid': Property(), 'email': Property(mutable=True), 'timezone': Property(mutable=True), 'email_notifications': Property(mutable=True),