handle nested dict when creating undot_prefs (a naive dict.update won't do!)
This commit is contained in:
sebdelsol 2022-11-06 20:02:24 +01:00 committed by GitHub
parent 2ef9791abb
commit 75c4a56951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ class ChromeOptions(_ChromiumOptions):
# undot prefs dict keys
undot_prefs = {}
for key, value in prefs.items():
undot_prefs.update(self._undot_key(key, value))
undot_prefs = self._merge_nested(
undot_prefs, self._undot_key(key, value)
)
prefs_file = os.path.join(default_path, "Preferences")
if os.path.exists(prefs_file):