Skip to content

Commit 66ec545

Browse files
committed
fix(chrome): update ChromeDriver path handling messages
1 parent 026dac2 commit 66ec545

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

linkedin_mcp_server/drivers/chrome.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,13 @@ def handle_driver_error() -> None:
339339
config.chrome.chromedriver_path = path
340340
os.environ["CHROMEDRIVER"] = path
341341
print(f"✅ ChromeDriver path set to: {path}")
342-
# Try again with the new path
343-
initialize_driver()
342+
print("💡 Please restart the application to use the new ChromeDriver path.")
343+
print(" Example: uv run main.py")
344+
sys.exit(0)
344345
else:
345346
print(f"⚠️ Warning: The specified path does not exist: {path}")
346-
initialize_driver()
347+
print("💡 Please check the path and restart the application.")
348+
sys.exit(1)
347349

348350
elif answers["chromedriver_action"] == "help":
349351
print("\n📋 ChromeDriver Installation Guide:")

0 commit comments

Comments
 (0)