mirror of https://github.com/langgenius/dify.git
fix(trigger): handle missing subscription constructor gracefully in PluginTriggerProviderController
- Updated the logic in `PluginTriggerProviderController` to return an empty list instead of raising a ValueError when the subscription constructor is not found, improving error handling and flow.
This commit is contained in:
parent
beaeb30dcc
commit
671aba6ab7
|
|
@ -207,7 +207,7 @@ class PluginTriggerProviderController:
|
|||
"""
|
||||
subscription_constructor = self.entity.subscription_constructor
|
||||
if not subscription_constructor:
|
||||
raise ValueError("Subscription constructor not found")
|
||||
return []
|
||||
credential_type = CredentialType.of(credential_type) if isinstance(credential_type, str) else credential_type
|
||||
if credential_type == CredentialType.OAUTH2:
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue