catch HttpRequestException

This commit is contained in:
Collin M. Barrett 2018-02-05 12:13:36 -06:00
parent 002855f4d1
commit 299c49219e

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