mirror of https://github.com/langgenius/dify.git
Potential fix for code scanning alert no. 211: 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
2dbfd9ea5a
commit
8bc5035624
|
|
@ -102,4 +102,4 @@ def handle_webhook_debug(webhook_id: str):
|
|||
raise
|
||||
except Exception as e:
|
||||
logger.exception("Webhook debug processing failed for %s", webhook_id)
|
||||
return jsonify({"error": "Internal server error", "message": str(e)}), 500
|
||||
return jsonify({"error": "Internal server error", "message": "An internal error has occurred."}), 500
|
||||
|
|
|
|||
Loading…
Reference in New Issue