mirror of https://github.com/langgenius/dify.git
fix(oauth): add error handling for OAuth parameter decryption
This commit is contained in:
parent
5090f63df5
commit
8fc5ccab35
|
|
@ -502,7 +502,10 @@ class BuiltinToolManageService:
|
|||
.first()
|
||||
)
|
||||
if system_client:
|
||||
oauth_params = decrypt_system_oauth_params(system_client.encrypted_oauth_params)
|
||||
try:
|
||||
oauth_params = decrypt_system_oauth_params(system_client.encrypted_oauth_params)
|
||||
except Exception as e:
|
||||
raise ValueError(f"Error decrypting system oauth params: {e}")
|
||||
|
||||
return oauth_params
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue