mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-09 21:07:14 +00:00
html log fix and regexp pattern warn fix
This commit is contained in:
parent
85deae7bc7
commit
e0e98811a0
@ -326,7 +326,7 @@ def _evil_logic(req: V1RequestBase, driver: ChromiumPage, method: str) -> Challe
|
||||
|
||||
# wait for the page
|
||||
if utils.get_config_log_html():
|
||||
logging.debug("Response HTML:\n%s", driver.page_source)
|
||||
logging.debug("Response HTML:\n%s", driver.html)
|
||||
|
||||
page_title = driver.title
|
||||
# find access denied titles
|
||||
|
@ -332,7 +332,7 @@ def extract_version_nt_folder() -> str:
|
||||
paths = [f.path for f in os.scandir(path) if f.is_dir()]
|
||||
for path in paths:
|
||||
filename = os.path.basename(path)
|
||||
pattern = '\d+\.\d+\.\d+\.\d+'
|
||||
pattern = r'\d+\.\d+\.\d+\.\d+'
|
||||
match = re.search(pattern, filename)
|
||||
if match and match.group():
|
||||
# Found a Chrome version.
|
||||
|
Loading…
x
Reference in New Issue
Block a user