Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Dec 20, 2024
1 parent 15dc0f0 commit fca2e43
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions py-polars/polars/io/cloud/credential_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,11 @@ def __call__(self) -> CredentialProviderFunctionReturn:
"""Fetch the credentials."""
if self.account_name is not None:
try:
out = (
{
"account_key": self._get_azure_storage_account_key_az_cli(
self.account_name
)
},
None,
)
creds = {
"account_key": self._get_azure_storage_account_key_az_cli(
self.account_name
)
}

if self._verbose:
print(
Expand All @@ -221,7 +218,7 @@ def __call__(self) -> CredentialProviderFunctionReturn:
file=sys.stderr,
)
else:
return out # type: ignore[return-value]
return creds, None # type: ignore[return-value]

token = self.credential.get_token(*self.scopes)

Expand Down

0 comments on commit fca2e43

Please sign in to comment.