aboutsummaryrefslogtreecommitdiffstats
path: root/python/parse_emails.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/parse_emails.py')
-rw-r--r--python/parse_emails.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/parse_emails.py b/python/parse_emails.py
index 0a31c58e..795e1c2d 100644
--- a/python/parse_emails.py
+++ b/python/parse_emails.py
@@ -153,8 +153,6 @@ def parse_nomura_block(fh, indextype):
line = line.rstrip()
if "EXPIRY" in line or line == "":
break
- if line == "":
- break
strike, receiver, payer, vol, _ = line.split("|", 4)
strike = strike.strip()
pay, pay_delta = payer.strip().split()
@@ -249,7 +247,7 @@ def parse_nomura(fh, indextype, *args):
if "EXPIRY" in next_line:
aux(next_line, fh, indextype, option_stack)
else:
- import pdb;pdb.set_trace()
+ raise RuntimeError("Don't know what to do with {}:".format(line))
for line in fh:
line = line.rstrip()
if "EXPIRY" in line: