Skip to content

Commit

Permalink
Fix variable used before creation
Browse files Browse the repository at this point in the history
  • Loading branch information
malywut committed Dec 23, 2024
1 parent 65ef3af commit 82c7f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82c7f8d

Please sign in to comment.