From fa182434913849e9a6258b697abb1c0d1940e4c5 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 27 May 2022 13:48:13 -0700 Subject: [PATCH] add check for top data --- jc/parsers/top_s.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jc/parsers/top_s.py b/jc/parsers/top_s.py index 03966e2a..80a4f264 100644 --- a/jc/parsers/top_s.py +++ b/jc/parsers/top_s.py @@ -453,6 +453,11 @@ def parse( process_list.append(line.rstrip()) continue + if process_table and line.rstrip() == '': + continue + + raise ParseError('Not top data') + except Exception as e: yield raise_or_yield(ignore_exceptions, e, line)