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:
Harry 2025-10-16 15:09:13 +08:00
parent beaeb30dcc
commit 671aba6ab7
1 changed files with 1 additions and 1 deletions

View File

@ -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 (