From 82c7f8db05aa22d7003f1dee05d9d2ca6c7e880b Mon Sep 17 00:00:00 2001 From: Marie-Alice Blete <10806774+malywut@users.noreply.github.com> Date: Mon, 23 Dec 2024 18:11:36 +0100 Subject: [PATCH] Fix variable used before creation --- generate_site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_site.py b/generate_site.py index ffe8a06..ef63053 100644 --- a/generate_site.py +++ b/generate_site.py @@ -26,10 +26,10 @@ def generate_webpage_screenshot(html_path): chrome_options.binary_location = "/usr/bin/google-chrome" # Specify Chrome binary print("Starting screenshot process...") - print(f"Chrome version: {driver.capabilities['browserVersion']}") service = Service(ChromeDriverManager().install()) driver = webdriver.Chrome(service=service, options=chrome_options) + print(f"Chrome version: {driver.capabilities['browserVersion']}") try: # Set a fixed window size