readded concurrency exception check

This commit is contained in:
JPVenson
2026-05-14 13:09:00 +00:00
committed by Bond_009
parent 8e602f982f
commit 8ec3b5c7ac

View File

@@ -299,6 +299,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.");