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.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/quote_parsing/parse_emails.py b/python/quote_parsing/parse_emails.py
index f29df840..d2b7a609 100644
--- a/python/quote_parsing/parse_emails.py
+++ b/python/quote_parsing/parse_emails.py
@@ -303,7 +303,13 @@ def parse_ms_block(fh, indextype):
vol, vol_change, be = vol.split()
except ValueError:
# Doesn't look like we're tracking vol change and sometimes BE is broken
- vol, vol_change_be = vol.split()
+ try:
+ vol, vol_change_be = vol.split()
+ except ValueError:
+ vol, _, vol_change, be = (
+ vol.replace("[", "").replace("]", "").split()
+ )
+ # They have PrcVol as a column now
vals += [vol]
r.append(vals)
return makedf(r, indextype, "MS")