Merge "Guard against all exceptions when processing a line"

This commit is contained in:
Jenkins 2017-03-15 09:27:22 +00:00 committed by Gerrit Code Review
commit 27b28c12f2
1 changed files with 3 additions and 3 deletions

View File

@ -217,9 +217,9 @@ class LogFile(object):
return entry, new_entry
entry = new_entry
except ValueError:
# it's a non-dated line, just append to the entry
# extra info
except Exception:
# it's probably a non-dated line, or a garbled entry, just
# append to the entry extra info
if entry:
entry.append_line(line)