woopsie 2
This commit is contained in:
parent
7468324f55
commit
c273241773
@ -157,13 +157,11 @@ namespace NadekoBot.Modules.Searches
|
||||
return result;
|
||||
using (var http = new HttpClient())
|
||||
{
|
||||
_log.Info(twitchUrl);
|
||||
response = await http.GetStringAsync(twitchUrl).ConfigureAwait(false);
|
||||
}
|
||||
var twData = JsonConvert.DeserializeObject<TwitchResponse>(response);
|
||||
if (twData.Error != null)
|
||||
{
|
||||
_log.Error(twData.Error);
|
||||
throw new StreamNotFoundException($"{stream.Username} [{stream.Type}]");
|
||||
}
|
||||
result = new StreamStatus()
|
||||
|
Loading…
Reference in New Issue
Block a user