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; return result;
using (var http = new HttpClient()) using (var http = new HttpClient())
{ {
_log.Info(twitchUrl);
response = await http.GetStringAsync(twitchUrl).ConfigureAwait(false); response = await http.GetStringAsync(twitchUrl).ConfigureAwait(false);
} }
var twData = JsonConvert.DeserializeObject<TwitchResponse>(response); var twData = JsonConvert.DeserializeObject<TwitchResponse>(response);
if (twData.Error != null) if (twData.Error != null)
{ {
_log.Error(twData.Error);
throw new StreamNotFoundException($"{stream.Username} [{stream.Type}]"); throw new StreamNotFoundException($"{stream.Username} [{stream.Type}]");
} }
result = new StreamStatus() result = new StreamStatus()