Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 22, 2024
1 parent f0a2601 commit 77eb6d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oauthenticator/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,9 @@ def user_info_to_username(self, user_info):
"""
username = user_info.get(self.username_claim, None)
if not username:
message = (f"No {self.username_claim} found in {user_info}. Maybe the hub needs to be configured to request more scopes?",)
message = (
f"No {self.username_claim} found in {user_info}. Maybe the hub needs to be configured to request more scopes?",
)
self.log.error(message)
raise ValueError(message)

Expand Down

0 comments on commit 77eb6d1

Please sign in to comment.