forgot truncate

This commit is contained in:
sebdelsol 2022-04-04 13:22:28 +02:00
parent 8084b3f9c4
commit f5b47dbdd5
1 changed files with 1 additions and 1 deletions

View File

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