Skip to content

Commit 6ff1303

Browse files
committed
[py]: Fix bug when logging manager path
1 parent 842f413 commit 6ff1303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/common/selenium_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_binary() -> Path:
5656
if not path.is_file():
5757
raise WebDriverException(f"Unable to obtain working Selenium Manager binary; {path}")
5858

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

6161
return path
6262

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

128128
for item in output["logs"]:
129129
if item["level"] == "WARN":

0 commit comments

Comments
 (0)