Skip to content

Commit

Permalink
Fix: use generic exception instead of WebDriverCurlException (#657)
Browse files Browse the repository at this point in the history
WebDriverCurlException as changed from Facebook\WebDriver\Exception to Facebook\WebDriver\Exception\Internal
this commit use the more specific common exeption to theese 2 ones
  • Loading branch information
yohang authored Jan 8, 2025
1 parent b41f5a0 commit 8449573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Facebook\WebDriver\Exception\NoSuchElementException;
use Facebook\WebDriver\Exception\TimeoutException;
use Facebook\WebDriver\Exception\WebDriverCurlException;
use Facebook\WebDriver\Exception\WebDriverException;
use Facebook\WebDriver\JavaScriptExecutor;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\WebDriver;
Expand Down Expand Up @@ -110,7 +110,7 @@ public function __destruct()
{
try {
$this->quit();
} catch (WebDriverCurlException) {
} catch (WebDriverException) {
// ignore
}
}
Expand Down

0 comments on commit 8449573

Please sign in to comment.