aboutsummaryrefslogtreecommitdiffstats
path: root/python/load_indicative.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/load_indicative.py')
-rw-r--r--python/load_indicative.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/load_indicative.py b/python/load_indicative.py
index 307ba12b..1c8bf770 100644
--- a/python/load_indicative.py
+++ b/python/load_indicative.py
@@ -21,8 +21,9 @@ def upload_cusip_data(conn, filename):
for line in dr:
if "ISIN" not in line:
line['ISIN'] = None
- if "," in line['Tranche']:
- line["dealname"], line["tranche"] = line["Tranche"].split(",")
+ sp = line["Tranche"].split(",")
+ if len(sp)==2:
+ line["dealname"], line["tranche"] = sp
else:
continue
line["dealname"] = line["dealname"].lower()