diff --git a/src/FilterLists.Services/SnapshotService/SnapshotDe.cs b/src/FilterLists.Services/SnapshotService/SnapshotDe.cs index a23943d9e..4e776255f 100644 --- a/src/FilterLists.Services/SnapshotService/SnapshotDe.cs +++ b/src/FilterLists.Services/SnapshotService/SnapshotDe.cs @@ -14,7 +14,10 @@ namespace FilterLists.Services.SnapshotService public class SnapshotDe { private const int BatchSize = 1000; - private const string UserAgentString = @"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"; + + private const string UserAgentString = + @"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"; + private readonly FilterListsDbContext dbContext; private readonly FilterListViewUrlDto list; private Snapshot snapshot; @@ -67,6 +70,11 @@ private async Task TryGetContent() snapshot.HttpStatusCode = null; return null; } + catch (AggregateException) + { + snapshot.HttpStatusCode = null; + return null; + } } private async Task GetContent()