mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 08:59:46 +08:00
Potential fix for code scanning alert no. 243: 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
dd089b1b21
commit
501698d844
@ -41,4 +41,4 @@ def trigger_endpoint(endpoint_id: str):
|
||||
return jsonify({"error": "Endpoint processing failed", "message": str(e)}), 500
|
||||
except Exception as e:
|
||||
logger.exception("Webhook processing failed for {endpoint_id}")
|
||||
return jsonify({"error": "Internal server error", "message": str(e)}), 500
|
||||
return jsonify({"error": "Internal server error"}), 500
|
||||
|
||||
Loading…
Reference in New Issue
Block a user