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:
Yeuoly 2025-10-30 16:00:57 +08:00 committed by GitHub
parent 2dbfd9ea5a
commit 8bc5035624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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