Skip to content

Commit 4237435

Browse files
committed
chore: lint
1 parent b5da327 commit 4237435

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

codecarbon/cli/auth.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
import requests
1616
from authlib.common.security import generate_token
1717
from authlib.integrations.requests_client import OAuth2Session
18-
from authlib.jose import JsonWebKey, jwt as jose_jwt
18+
from authlib.jose import JsonWebKey
19+
from authlib.jose import jwt as jose_jwt
1920
from authlib.oauth2.rfc7636 import create_s256_code_challenge
2021

2122
AUTH_CLIENT_ID = os.environ.get(
@@ -194,9 +195,7 @@ def get_access_token() -> str:
194195

195196
access_token = creds.get("access_token")
196197
if not access_token:
197-
raise ValueError(
198-
"No access token found. Please run `codecarbon login` first."
199-
)
198+
raise ValueError("No access token found. Please run `codecarbon login` first.")
200199

201200
# Fast path: token is still valid for the current OIDC provider
202201
if _validate_access_token(access_token):

0 commit comments

Comments
 (0)