woopsie 2

This commit is contained in:
Kwoth 2016-12-03 04:10:22 +01:00
parent 7468324f55
commit c273241773

View File

@ -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()