Skip to content

Commit

Permalink
Potential fix for code scanning alert no. 8: 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 25e7aea commit f12f851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/web/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ def abort_chat():
session_manager.abort_chat(session_id)
return jsonify({"status": "success", "message": "Chat aborted"})
except Exception as e:
logger.error(f"Error aborting chat: {str(e)}")
return jsonify({"error": str(e)}), 500
logger.error(f"Error aborting chat: {str(e)}", exc_info=True)
return jsonify({"error": "An internal error has occurred"}), 500

@app.route("/")
def index():
Expand Down

0 comments on commit f12f851

Please sign in to comment.