diff --git a/Config/FluentCommon.cs b/Config/FluentCommon.cs index f231cef3f..61430b540 100644 --- a/Config/FluentCommon.cs +++ b/Config/FluentCommon.cs @@ -131,9 +131,15 @@ namespace Config { using (var transaction = session.BeginTransaction()) { - session.SaveOrUpdate(obj); - try { transaction.Commit(); } - catch { } + try + { + session.SaveOrUpdate(obj); + transaction.Commit(); + } + catch + { + transaction.Rollback(); + } } }