mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Catch database concurrency exception.
This commit is contained in:
@@ -43,6 +43,7 @@ using DiscImageChef.CommonTypes.Interop;
|
|||||||
using DiscImageChef.CommonTypes.Metadata;
|
using DiscImageChef.CommonTypes.Metadata;
|
||||||
using DiscImageChef.Database;
|
using DiscImageChef.Database;
|
||||||
using DiscImageChef.Database.Models;
|
using DiscImageChef.Database.Models;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Device = DiscImageChef.Devices.Device;
|
using Device = DiscImageChef.Devices.Device;
|
||||||
using MediaType = DiscImageChef.CommonTypes.MediaType;
|
using MediaType = DiscImageChef.CommonTypes.MediaType;
|
||||||
@@ -1067,6 +1068,10 @@ namespace DiscImageChef.Core
|
|||||||
{
|
{
|
||||||
// Can't connect to the server, do nothing
|
// Can't connect to the server, do nothing
|
||||||
}
|
}
|
||||||
|
catch(DbUpdateConcurrencyException)
|
||||||
|
{
|
||||||
|
// Ignore db concurrency errors
|
||||||
|
}
|
||||||
|
|
||||||
// ReSharper disable once RedundantCatchClause
|
// ReSharper disable once RedundantCatchClause
|
||||||
catch
|
catch
|
||||||
|
|||||||
Reference in New Issue
Block a user