mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
feat(rss): catch exceptions in DoFetch
This commit is contained in:
@@ -114,6 +114,9 @@ public class RssFetch : IHostedService, IDisposable
|
|||||||
|
|
||||||
await dbContext.SaveChangesAsync();
|
await dbContext.SaveChangesAsync();
|
||||||
}
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
|
_logger.LogError("{Message}", ex.Message);
|
||||||
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
_timer.Change(TimerPeriod, TimerPeriod);
|
_timer.Change(TimerPeriod, TimerPeriod);
|
||||||
@@ -261,4 +264,4 @@ public class RssFetch : IHostedService, IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user