mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
removed swallowed exceptions
This commit is contained in:
@@ -145,6 +145,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
|
||||
{
|
||||
transaction.Rollback();
|
||||
}
|
||||
|
||||
throw;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -154,6 +156,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
|
||||
{
|
||||
transaction.Rollback();
|
||||
}
|
||||
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -228,7 +232,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
|
||||
|
||||
cmd.Transaction = transaction;
|
||||
|
||||
await ExecuteCommand(cmd).ConfigureAwait(false);
|
||||
await cmd.ExecuteNonQueryAsync(cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
transaction.Commit();
|
||||
@@ -239,6 +243,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
|
||||
{
|
||||
transaction.Rollback();
|
||||
}
|
||||
|
||||
throw;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -248,6 +254,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
|
||||
{
|
||||
transaction.Rollback();
|
||||
}
|
||||
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user