aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/markit_tranche_quotes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/markit_tranche_quotes.py b/python/markit_tranche_quotes.py
index a7f1eb92..dcefa806 100644
--- a/python/markit_tranche_quotes.py
+++ b/python/markit_tranche_quotes.py
@@ -44,7 +44,7 @@ runningdict1 = {0: 500, 3: 100, 7: 100, 15: 25}
runningdict2 = {0: 500, 3: 500, 7: 500, 10: 100, 15: 100, 30: 100}
markit_id = get_latest_quote_id(serenitasdb)
-headers = [h.lower() for h in next(f).split(",")]
+headers = [h.lower() for h in next(f).strip().split(",")]
count = 0
for d in csv.DictReader(f, fieldnames=headers):
d['quotedate'] = datetime.datetime.strptime(d['time'], "%m/%d/%Y %H:%M:%S")