From 186c82029fa2922993d086d4a759ae42a559d406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Fri, 21 Jun 2024 10:55:31 -0300 Subject: [PATCH] Replace WebException with HttpRequestException (#2655) --- lib/PuppeteerSharp/BrowserFetcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PuppeteerSharp/BrowserFetcher.cs b/lib/PuppeteerSharp/BrowserFetcher.cs index 365a62214..655c60d34 100644 --- a/lib/PuppeteerSharp/BrowserFetcher.cs +++ b/lib/PuppeteerSharp/BrowserFetcher.cs @@ -93,7 +93,7 @@ public async Task CanDownloadAsync(string revision) using var response = await client.SendAsync(requestMessage).ConfigureAwait(false); return response.StatusCode == HttpStatusCode.OK; } - catch (WebException) + catch (HttpRequestException) { return false; }