Added try/catch to DLive

This commit is contained in:
barelyprofessional
2025-07-22 11:30:39 -05:00
parent 12cbb1733f
commit a88449ddab

View File

@@ -45,7 +45,17 @@ public class DLive(ChatBot kfChatBot) : IDisposable
continue; continue;
} }
var status = await IsLive(username, ct); DLiveIsLiveModel status;
try
{
status = await IsLive(username, ct);
}
catch (Exception e)
{
_logger.Error($"Caught an exception while retrieving live status for {username}");
_logger.Error(e);
continue;
}
if (!status.IsLive) if (!status.IsLive)
{ {
currentlyLive.Remove(username); currentlyLive.Remove(username);