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

View File

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