Skip to content

Commit 8449573

Browse files
authored
Fix: use generic exception instead of WebDriverCurlException (#657)
WebDriverCurlException as changed from Facebook\WebDriver\Exception to Facebook\WebDriver\Exception\Internal this commit use the more specific common exeption to theese 2 ones
1 parent b41f5a0 commit 8449573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Facebook\WebDriver\Exception\NoSuchElementException;
1717
use Facebook\WebDriver\Exception\TimeoutException;
18-
use Facebook\WebDriver\Exception\WebDriverCurlException;
18+
use Facebook\WebDriver\Exception\WebDriverException;
1919
use Facebook\WebDriver\JavaScriptExecutor;
2020
use Facebook\WebDriver\Remote\RemoteWebDriver;
2121
use Facebook\WebDriver\WebDriver;
@@ -110,7 +110,7 @@ public function __destruct()
110110
{
111111
try {
112112
$this->quit();
113-
} catch (WebDriverCurlException) {
113+
} catch (WebDriverException) {
114114
// ignore
115115
}
116116
}

0 commit comments

Comments
 (0)