diff options
Diffstat (limited to 'python/load_intex_collateral.py')
| -rw-r--r-- | python/load_intex_collateral.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/load_intex_collateral.py b/python/load_intex_collateral.py index 3454b1fd..1b0a7c45 100644 --- a/python/load_intex_collateral.py +++ b/python/load_intex_collateral.py @@ -52,7 +52,7 @@ def upload_data(conn, dealnames, workdate): logging.warning("dubious {0} found: {1}".format(key, line[key])) line[key] = line[key][:l] - if line['Reinvest Collat'].upper() == 'Y': + if 'Reinvest Collat' in line and line['Reinvest Collat'].upper() == 'Y': # assume it's a reinvestment asset line['Reinvest Collat'] = True line['Issuer'] = line['ID Number'] |
