Skip to content

Commit

Permalink
Potential fix for code scanning alert no. 6: Information exposure thr…
Browse files Browse the repository at this point in the history
…ough an exception

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 4eabc61 commit eebd6a6
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 eebd6a6

Please sign in to comment.