More error resilience when logging success/failure of prints
This commit is contained in:
1 parent
11c415fd17
commit
85a567bdab
1 file changed
+3
-3
@@ -89,9 +89,9 @@ def _getFileList(origin, filter=None):
|
||||
failure = 0
|
||||
last = None
|
||||
for entry in history:
|
||||
success += 1 if entry["success"] else 0
|
||||
failure += 1 if not entry["success"] else 0
|
||||
if not last or entry["timestamp"] > last["timestamp"]:
|
||||
success += 1 if "success" in entry and entry["success"] else 0
|
||||
failure += 1 if "success" in entry and not entry["success"] else 0
|
||||
if not last or ("timestamp" in entry and "timestamp" in last and entry["timestamp"] > last["timestamp"]):
|
||||
last = entry
|
||||
if last:
|
||||
prints = dict(
|
||||
|
||||
Reference in new issue
Block a user