diff --git a/oauthenticator/oauth2.py b/oauthenticator/oauth2.py index 170689fe..71560dbd 100644 --- a/oauthenticator/oauth2.py +++ b/oauthenticator/oauth2.py @@ -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)