Skip to content

Commit

Permalink
fix: Information exposure through an exception (#123)
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 4eabc61 commit 3440b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/api/src/api/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,6 @@ def handle_standard_response(
"created_at": datetime.now(timezone.utc).isoformat(),
"done": True,
"done_reason": "error",
"error": str(e),
"error": "An internal error has occurred. Please try again later.",
}
return jsonify(error_response)

0 comments on commit 3440b39

Please sign in to comment.