Skip to content

Commit 186c820

Browse files
authored
Replace WebException with HttpRequestException (#2655)
1 parent 676edec commit 186c820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PuppeteerSharp/BrowserFetcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public async Task<bool> CanDownloadAsync(string revision)
9393
using var response = await client.SendAsync(requestMessage).ConfigureAwait(false);
9494
return response.StatusCode == HttpStatusCode.OK;
9595
}
96-
catch (WebException)
96+
catch (HttpRequestException)
9797
{
9898
return false;
9999
}

0 commit comments

Comments
 (0)