Skip to content

Commit

Permalink
Merge pull request #455 from Michael1297/master
Browse files Browse the repository at this point in the history
fix encoding when reading log file
  • Loading branch information
rdavydov authored Feb 29, 2024
2 parents 2bdb3d2 + c14a722 commit 06c6555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchChannelPointsMiner/classes/AnalyticsServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def generate_log():
logs_path = os.path.join(Path().absolute(), "logs")
log_file_path = os.path.join(logs_path, f"{username}.log")
try:
with open(log_file_path, "r") as log_file:
with open(log_file_path, "r", encoding="utf-8") as log_file:
log_content = log_file.read()

# Extract new log entries since the last received index
Expand Down

0 comments on commit 06c6555

Please sign in to comment.