Skip to content

Commit a29101c

Browse files
committed
Fix issue with setting user-data-dir in --uc mode
1 parent 388b730 commit a29101c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

seleniumbase/undetected/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ def __init__(
277277
):
278278
config["profile"]["exit_type"] = None
279279
fs.seek(0, 0)
280+
fs.truncate()
280281
json.dump(config, fs)
281282
logger.debug("Fixed exit_type flag.")
282283
except Exception:

0 commit comments

Comments
 (0)