commit 85b405527109401956bd145a29ce22ecf77e3e04 Author: Micha vor dem Berge m@mcvdb.de Date: Wed Jan 27 08:18:55 2010 +0000
If we got an empty log line just go on parsing with nothing instead of dying
Signed-off-by: Konstantin Ryabitsev mricon@kernel.org
py/epylog/helpers.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --- diff --git a/py/epylog/helpers.py b/py/epylog/helpers.py index d00435a..83c2882 100644 --- a/py/epylog/helpers.py +++ b/py/epylog/helpers.py @@ -120,6 +120,9 @@ class ModuleTest: """ Create a linemap out of a line entry. """ + # If we got an empty log line just go on parsing with nothing + # instead of dying + if line == "": return "" try: stamp, sys, msg = epylog.log.get_stamp_sys_msg(line, monthmap) except ValueError: