catch HttpRequestException

This commit is contained in:
Collin M. Barrett 2018-02-05 12:13:36 -06:00
parent 0ab08ecc42
commit b9cf811dd8

View file

@ -48,6 +48,11 @@ private async Task<string> TryGetContent()
snapshot.HttpStatusCode = (int)((HttpWebResponse)we.Response).StatusCode;
return null;
}
catch (HttpRequestException)
{
//TODO: log error
return null;
}
}
private async Task<string> GetContent()