Skip to content

Commit

Permalink
fix: ignore unicode errors when reading log file
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jan 7, 2022
1 parent e79e3d3 commit c521b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beet/contrib/livereload.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def decorator(callback: LogCallback):
return decorator

def target(self, path: FileSystemPath, callback: LogCallback):
with open(path) as f:
with open(path, "r", errors="ignore") as f:
f.seek(0, 2)
while not self.event.is_set():
lines = f.read().splitlines()
Expand Down

0 comments on commit c521b12

Please sign in to comment.