feat(rss): catch exceptions in DoFetch

This commit is contained in:
West
2024-08-04 21:43:30 +03:00
parent 6605f8f172
commit 9497d36890
+4 -1
View File
@@ -114,6 +114,9 @@ public class RssFetch : IHostedService, IDisposable
await dbContext.SaveChangesAsync();
}
catch (Exception ex) {
_logger.LogError("{Message}", ex.Message);
}
finally
{
_timer.Change(TimerPeriod, TimerPeriod);
@@ -261,4 +264,4 @@ public class RssFetch : IHostedService, IDisposable
}
#endregion
}
}