Skip to content

Commit 78f08f6

Browse files
sfc-gh-pmansoursfc-gh-pczajka
authored andcommitted
Replace return with raise in WIF error check (#2231)
1 parent 63f918c commit 78f08f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snowflake/connector/auth/workload_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def from_attestation(
4444
return ApiFederatedAuthenticationType.GCP
4545
if attestation.provider == AttestationProvider.OIDC:
4646
return ApiFederatedAuthenticationType.OIDC
47-
return ValueError(f"Unknown attestation provider '{attestation.provider}'")
47+
raise ValueError(f"Unknown attestation provider '{attestation.provider}'")
4848

4949

5050
class AuthByWorkloadIdentity(AuthByPlugin):

0 commit comments

Comments
 (0)