Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrafunkamsterdam authored Nov 15, 2023
1 parent cea8071 commit 783b839
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions undetected_chromedriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from __future__ import annotations


__version__ = "3.5.3"
__version__ = "3.5.4"

import json
import logging
Expand Down Expand Up @@ -395,7 +395,7 @@ def __init__(
if no_sandbox:
options.arguments.extend(["--no-sandbox", "--test-type"])

if headless or options.headless:
if headless or getattr(options, 'headless', None):
#workaround until a better checking is found
try:
if self.patcher.version_main < 108:
Expand Down Expand Up @@ -485,7 +485,7 @@ def __init__(
else:
self._web_element_cls = WebElement

if options.headless:
if headless or getattr(options, 'headless', None):
self._configure_headless()

def _configure_headless(self):
Expand Down

1 comment on commit 783b839

@ilike2burnthing
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ultrafunkamsterdam should L305 also be updated to remove options.?

Please sign in to comment.