Skip to content

Commit 33f4145

Browse files
committed
Do not intercept exceptions from ICommandExecutor.ExecuteAsync
1 parent aff6bb8 commit 33f4145

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

dotnet/src/webdriver/WebDriver.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -612,16 +612,7 @@ protected virtual async Task<Response> ExecuteAsync(string driverCommandToExecut
612612
{
613613
Command commandToExecute = new Command(SessionId, driverCommandToExecute, parameters);
614614

615-
Response commandResponse;
616-
617-
try
618-
{
619-
commandResponse = await this.executor.ExecuteAsync(commandToExecute).ConfigureAwait(false);
620-
}
621-
catch (System.Net.Http.HttpRequestException e)
622-
{
623-
throw new WebDriverException("The " + driverCommandToExecute + " command failed to send.", e);
624-
}
615+
Response commandResponse = await this.executor.ExecuteAsync(commandToExecute).ConfigureAwait(false);
625616

626617
if (commandResponse.Status != WebDriverResult.Success)
627618
{

0 commit comments

Comments
 (0)