mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 20:17:29 +08:00
fix(api): fix basedpyright checks
This commit is contained in:
parent
16aa9254ad
commit
b6b7ff0aeb
@ -875,7 +875,7 @@ class TriggerProviderService:
|
|||||||
if not subscription:
|
if not subscription:
|
||||||
raise ValueError(f"Subscription {subscription_id} not found")
|
raise ValueError(f"Subscription {subscription_id} not found")
|
||||||
|
|
||||||
credential_type = subscription.credential_type
|
credential_type = CredentialType.of(subscription.credential_type)
|
||||||
if credential_type not in {CredentialType.OAUTH2, CredentialType.API_KEY}:
|
if credential_type not in {CredentialType.OAUTH2, CredentialType.API_KEY}:
|
||||||
raise ValueError(f"Credential type {credential_type} not supported for auto creation")
|
raise ValueError(f"Credential type {credential_type} not supported for auto creation")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user