Skip to content

Commit a9bd2a7

Browse files
committed
black
1 parent e778f33 commit a9bd2a7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

sdk/identity/azure-identity/azure/identity/_credentials/azure_cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ def get_token_info(self, *scopes: str, options: Optional[TokenRequestOptions] =
147147
"""
148148
claims_value = options.get("claims") if options else None
149149
if claims_value and claims_value.strip():
150-
raise CredentialUnavailableError(
151-
f"Failed to get token. Run az login --claims-challenge {claims_value}"
152-
)
150+
raise CredentialUnavailableError(f"Failed to get token. Run az login --claims-challenge {claims_value}")
153151
return self._get_token_base(*scopes, options=options)
154152

155153
def _get_token_base(

sdk/identity/azure-identity/azure/identity/aio/_credentials/azure_cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ async def get_token_info(self, *scopes: str, options: Optional[TokenRequestOptio
142142
"""
143143
claims_value = options.get("claims") if options else None
144144
if claims_value and claims_value.strip():
145-
raise CredentialUnavailableError(
146-
f"Failed to get token. Run az login --claims-challenge {claims_value}"
147-
)
145+
raise CredentialUnavailableError(f"Failed to get token. Run az login --claims-challenge {claims_value}")
148146
# only ProactorEventLoop supports subprocesses on Windows (and it isn't the default loop on Python < 3.8)
149147
if sys.platform.startswith("win") and not isinstance(asyncio.get_event_loop(), asyncio.ProactorEventLoop):
150148
return _SyncAzureCliCredential().get_token_info(*scopes, options=options)

0 commit comments

Comments
 (0)