mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
catch HttpRequestException
This commit is contained in:
parent
0ab08ecc42
commit
b9cf811dd8
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue