html log fix and regexp pattern warn fix

This commit is contained in:
AlexFozor 2024-08-01 13:29:55 +02:00
parent 85deae7bc7
commit e0e98811a0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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.