Skip to content

Commit 8e71835

Browse files
Potential fix for code scanning alert no. 10: Information exposure through an exception
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 8377e43 commit 8e71835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def update_da_config():
8686
print(f"Error in POST da-config: {str(e)}")
8787
print(traceback.format_exc())
8888
db.session.rollback()
89-
return jsonify({'error': str(e)}), 500
89+
return jsonify({'error': 'An internal error has occurred. Please try again later.'}), 500
9090

9191
# Keep test-connection separate
9292
@settings_bp.route('/api/test-connection', methods=['POST'])

0 commit comments

Comments
 (0)