Skip to content

Commit 878222f

Browse files
committed
Avoid failures due to encoding issues in tracker
1 parent d14b6f3 commit 878222f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fireworks/core/firework.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def track_file(self, launch_dir=None):
375375
if self.allow_zipped:
376376
m_file = zpath(m_file)
377377
if os.path.exists(m_file):
378-
with zopen(m_file, "rt") as f:
378+
with zopen(m_file, "rt", errors='surrogateescape') as f:
379379
for l in reverse_readline(f):
380380
lines.append(l)
381381
if len(lines) == self.nlines:

0 commit comments

Comments
 (0)