Skip to content

Commit 7705598

Browse files
author
Shira Sassoon
committed
fix comment
1 parent da260d3 commit 7705598

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/fabric_cli/core/fab_auth.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from binascii import hexlify
1010
from typing import Any, NamedTuple, Optional
1111

12-
from azure.identity import AzureCliCredential, CredentialUnavailableError
1312
import jwt
1413
import msal
1514
import requests
15+
from azure.identity import AzureCliCredential, CredentialUnavailableError
1616
from cryptography import x509
1717
from cryptography.hazmat.backends import default_backend
1818
from cryptography.hazmat.primitives import hashes, serialization
@@ -491,7 +491,9 @@ def _acquire_token_from_azure_cli(self, scope: list[str]) -> dict:
491491
current_tenant = self._get_azure_cli_tenant()
492492
if current_tenant and current_tenant != stored_tenant:
493493
raise FabricCLIError(
494-
ErrorMessages.Auth.azure_cli_tenant_mismatch(stored_tenant, current_tenant),
494+
ErrorMessages.Auth.azure_cli_tenant_mismatch(
495+
stored_tenant, current_tenant
496+
),
495497
status_code=con.ERROR_AUTHENTICATION_FAILED,
496498
)
497499

@@ -522,8 +524,7 @@ def _acquire_token_from_azure_cli(self, scope: list[str]) -> dict:
522524
status_code=con.ERROR_AUTHENTICATION_FAILED,
523525
)
524526
except Exception as e:
525-
# Allowlist: SDK exceptions are pre-sanitized by azure-identity;
526-
# unknown exceptions get a safe generic message.
527+
# Allowlist: SDK exceptions are pre-sanitized by azure-identity; unknown exceptions get a safe generic message
527528
if type(e).__name__ in ("ClientAuthenticationError", "HttpResponseError"):
528529
error_msg = str(e)
529530
else:

0 commit comments

Comments
 (0)