aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/load_intex_collateral.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/load_intex_collateral.py b/python/load_intex_collateral.py
index 38e05395..8a5c0ffa 100644
--- a/python/load_intex_collateral.py
+++ b/python/load_intex_collateral.py
@@ -66,7 +66,7 @@ def upload_data(dealnames, workdate, conn, cursor):
line['Issuer'] = line['ID Number']
except AttributeError as detail:
print dealname
- if 'Spread' in missingfields:
+ if 'Spread' in missingfields or not line['Spread']:
line['Spread'] = line['Gross Margin']
for field in ['Spread', 'Gross Coupon', 'Market Price', 'Contributed Balance']: