Skip to content

Commit

Permalink
Merge pull request #41 from YenForYang/patch-1
Browse files Browse the repository at this point in the history
Update utils.py
  • Loading branch information
AmgdGocha authored Dec 20, 2024
2 parents 853203c + 334a96b commit eb974b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivefs_sleuth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def lookup_account_id(drivefs_path, account_id):
for _, _, files in os.walk(logs_dir):
for file in files:
if file.startswith("drive_fs") and file.endswith(".txt"):
with open(os.path.join(logs_dir, file), 'r') as logs_file:
with open(os.path.join(logs_dir, file), 'r', encoding="utf8") as logs_file:
logs = logs_file.read()
match = re.search(r"([\w\.-]+@[\w\.-]+\.\w+) \(" + account_id + r"\)", logs)
if match:
Expand Down

0 comments on commit eb974b6

Please sign in to comment.