Skip to content

Commit 9d6842d

Browse files
committed
[py]: Reraise in Service as the direct cause
1 parent e348657 commit 9d6842d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/selenium/webdriver/common/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,5 @@ def _start_process(self, path: str) -> None:
218218
raise
219219
except OSError as err:
220220
if err.errno == errno.EACCES:
221-
raise WebDriverException(f"'{os.path.basename(self._path)}' executable may have wrong permissions.")
221+
raise WebDriverException(f"'{os.path.basename(self._path)}' executable may have wrong permissions.") from err
222222
raise

0 commit comments

Comments
 (0)