Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/src/testflinger_agent/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __call__(self, data: str):
def write_from_file(self, filename: str, chunk_size: int = 1024):
"""Write logs to endpoint from a file chunking by chunk_size."""
try:
with open(filename, "r") as log:
with open(filename, "r", encoding="utf-8", errors="ignore") as log:
while True:
data = log.read(chunk_size)
if not data:
Expand Down