Skip to content

Commit

Permalink
[py]: Reraise in Service as the direct cause
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Jul 25, 2023
1 parent e348657 commit 9d6842d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,5 +218,5 @@ def _start_process(self, path: str) -> None:
raise
except OSError as err:
if err.errno == errno.EACCES:
raise WebDriverException(f"'{os.path.basename(self._path)}' executable may have wrong permissions.")
raise WebDriverException(f"'{os.path.basename(self._path)}' executable may have wrong permissions.") from err
raise

0 comments on commit 9d6842d

Please sign in to comment.