From f5b47dbdd505b574c5964c3d8587a18462a54919 Mon Sep 17 00:00:00 2001 From: sebdelsol Date: Mon, 4 Apr 2022 13:22:28 +0200 Subject: [PATCH] forgot truncate --- undetected_chromedriver/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index d9907d2..6ac1cea 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -373,7 +373,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): config["profile"]["exit_type"] = None fs.seek(0, 0) json.dump(config, fs) - # fs.truncate() # the file might be shorter + fs.truncate() # the file might be shorter logger.debug("fixed exit_type flag") except Exception as e: logger.debug("did not find a bad exit_type flag ")