diff --git a/index.cs b/index.cs index c80d76f..c4f018b 100644 --- a/index.cs +++ b/index.cs @@ -42,7 +42,7 @@ static async Task GetLiveViewerCountAsync(TokenResponse tokenResponse) if (ytResponse is null || ytResponse.Items.Length is 0) { - throw new Exception(string.Empty); + return -1; } return ytResponse.Items[0].Stats.Viewers;