mirror of
https://github.com/langgenius/dify.git
synced 2026-04-10 11:37:11 +08:00
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
Block a user