Skip to content

Commit

Permalink
[py]: Fix bug when logging manager path
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Jul 24, 2023
1 parent 842f413 commit 6ff1303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/selenium/webdriver/common/selenium_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_binary() -> Path:
if not path.is_file():
raise WebDriverException(f"Unable to obtain working Selenium Manager binary; {path}")

logger.debug("Selenium Manager binary found at: {location}")
logger.debug(f"Selenium Manager binary found at: {path}")

return path

Expand Down Expand Up @@ -123,7 +123,7 @@ def run(args: List[str]) -> dict:
output = json.loads(stdout)
result = output["result"]
except Exception as err:
raise WebDriverException(f"Unsuccessful command executed: {command}; {err}")
raise WebDriverException(f"Unsuccessful command executed: {command}") from err

for item in output["logs"]:
if item["level"] == "WARN":
Expand Down

0 comments on commit 6ff1303

Please sign in to comment.