woopsie 2
This commit is contained in:
parent
7468324f55
commit
c273241773
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user