readded concurrency exception check

This commit is contained in:
JPVenson
2026-05-14 13:09:00 +00:00
parent b278dcf475
commit 5f3189af41

View File

@@ -294,6 +294,11 @@ public class JellyfinDbContext(DbContextOptions<JellyfinDbContext> options, ILog
});
return result;
}
catch (DbUpdateConcurrencyException)
{
// a concurrency exception is supposed to be always handled by the invoker of the method, logging it here is only causing log bloat.
throw;
}
catch (Exception e)
{
logger.LogError(e, "Error trying to save changes.");