From 715b12835d978db222db820463c9c73a326a7400 Mon Sep 17 00:00:00 2001 From: Mike Stucka Date: Tue, 24 Dec 2024 16:08:13 -0500 Subject: [PATCH] Service args go on the service --- warn/scrapers/va.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/warn/scrapers/va.py b/warn/scrapers/va.py index 6506706..0cce905 100644 --- a/warn/scrapers/va.py +++ b/warn/scrapers/va.py @@ -127,10 +127,8 @@ def scrape( "THIRD_PARTY_NOTICES.chromedriver", "chromedriver.exe" ) logger.debug(f"Chrome install variable is {chrome_install}") - service = ChromeService(chrome_install) - driver = webdriver.Chrome( - options=chromeoptionsholder, service=service, service_args=["--verbose"] - ) + service = ChromeService(chrome_install, service_args=["--verbose"]) + driver = webdriver.Chrome(options=chromeoptionsholder, service=service) logger.debug(f"Attempting to fetch {csv_url}") driver.get(csv_url)