From d3c8a9b9ba0ac5428374b5961df41a418f5f896c Mon Sep 17 00:00:00 2001 From: AlessandroZ Date: Mon, 13 Nov 2023 17:46:59 +0100 Subject: [PATCH] Fix #623 --- Windows/lazagne/softwares/browsers/chromium_based.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Windows/lazagne/softwares/browsers/chromium_based.py b/Windows/lazagne/softwares/browsers/chromium_based.py index 4022ffd8..9ae99009 100755 --- a/Windows/lazagne/softwares/browsers/chromium_based.py +++ b/Windows/lazagne/softwares/browsers/chromium_based.py @@ -41,7 +41,7 @@ def _get_database_dirs(self): if os.path.isdir(dirs_path) and dirs.startswith('Profile'): profiles.add(dirs) - with open(profiles_path) as f: + with open(profiles_path, "r", encoding="utf-8") as f: try: data = json.load(f) # Add profiles from json to Default profile. set removes duplicates @@ -49,7 +49,7 @@ def _get_database_dirs(self): except Exception: pass - with open(profiles_path) as f: + with open(profiles_path, "r", encoding="utf-8") as f: try: master_key = base64.b64decode(json.load(f)["os_crypt"]["encrypted_key"]) master_key = master_key[5:] # removing DPAPI