Skip to content

Commit

Permalink
Replace WebException with HttpRequestException (#2655)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Jun 21, 2024
1 parent 676edec commit 186c820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/BrowserFetcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public async Task<bool> CanDownloadAsync(string revision)
using var response = await client.SendAsync(requestMessage).ConfigureAwait(false);
return response.StatusCode == HttpStatusCode.OK;
}
catch (WebException)
catch (HttpRequestException)
{
return false;
}
Expand Down

0 comments on commit 186c820

Please sign in to comment.