aboutsummaryrefslogtreecommitdiffstats
path: root/python/quote_parsing
diff options
context:
space:
mode:
Diffstat (limited to 'python/quote_parsing')
-rw-r--r--python/quote_parsing/parse_emails.py2
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 = ""