mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
Potential fix for code scanning alert no. 244: Information exposure through an exception
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
447127cee4
commit
08e61d76d6
@ -473,7 +473,8 @@ class TriggerSubscriptionBuilderService:
|
|||||||
)
|
)
|
||||||
return response
|
return response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error_response = Response(status=500, response=str(e))
|
logger.exception("Error during validation endpoint dispatch for endpoint_id=%s", endpoint_id)
|
||||||
|
error_response = Response(status=500, response="An internal error has occurred.")
|
||||||
cls.append_log(endpoint_id=endpoint_id, request=request, response=error_response)
|
cls.append_log(endpoint_id=endpoint_id, request=request, response=error_response)
|
||||||
return error_response
|
return error_response
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user