Skip to content

Commit

Permalink
Fix code scanning alert no. 21: Information exposure through an excep…
Browse files Browse the repository at this point in the history
…tion

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
cherriae and github-advanced-security[bot] authored Jan 9, 2025
1 parent bb46036 commit c037887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scout/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def compare_teams():

except Exception as e:
current_app.logger.error(f"Error comparing teams: {str(e)}", exc_info=True)
return jsonify({"error": str(e)}), 500
return jsonify({"error": "An internal error has occurred."}), 500

@scouting_bp.route("/search")
@login_required
Expand Down

0 comments on commit c037887

Please sign in to comment.