Skip to content
Merged
Show file tree
Hide file tree
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 cuegui/cuegui/FrameMonitorTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def __init__(self):
self.__currentJob = None
self.__cache = {}

self.__defaultETA = ''
self.__defaultETA = 0

self.__TIME = 0
self.__ETA = 1
Expand Down
8 changes: 4 additions & 4 deletions cuegui/cuegui/eta.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def GetFrameEta(self, job, frame):
"""Gets ETA for the given frame."""
self.log = opencue.util.logPath(job, frame)
if os.path.isfile(self.log):
with open(self.log, encoding='utf-8') as fp:
with open(self.log, encoding='utf-8', errors='replace') as fp:
self.log_lines = len(fp.readlines())
self.GetFrameBuildTime(frame)
try:
Expand Down Expand Up @@ -121,7 +121,7 @@ def Svea(self, frame):
del frame
if os.path.isfile(self.log):
line = ''
with open(self.log, encoding='utf-8') as fp:
with open(self.log, encoding='utf-8', errors='replace') as fp:
for line in reversed(fp.readlines()):
# Checks log directory for a percentage complete in reverse to limit time in log
if 'Running generator batch' in line:
Expand Down Expand Up @@ -188,7 +188,7 @@ def GetFrameStartTime(self, frame):
return self.startTimeCache[key]
# Read the logFile here for time.
result = ''
with open(self.log, encoding='utf-8') as fp:
with open(self.log, encoding='utf-8', errors='replace') as fp:
for line in fp:
if '% done' in line:
result = line
Expand All @@ -205,7 +205,7 @@ def GetFrameBuildTime(self, frame):
return self.buildTimeCache[key]
# Read the logFile here for time.
result_line = None
with open(self.log, encoding='utf-8') as fp:
with open(self.log, encoding='utf-8', errors='replace') as fp:
for line in fp:
if 'Building scene done' in line:
result_line = line
Expand Down
Loading