diff options
| -rw-r--r-- | python/quote_parsing/parse_emails.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/quote_parsing/parse_emails.py b/python/quote_parsing/parse_emails.py index f389933f..75a1827c 100644 --- a/python/quote_parsing/parse_emails.py +++ b/python/quote_parsing/parse_emails.py @@ -187,6 +187,8 @@ def parse_bnp_block(fh, indextype, skip_header=True): line = re.sub("[/|]", " ", line) vals = re.sub(" +", " ", line).rstrip().split(" ") if indextype == "HY": + if len(line) != 8: + vals += [""] vals += [""] if len(vals) < 3: # something went wrong line = "" |
