aboutsummaryrefslogtreecommitdiffstats
path: root/python/load_intex_collateral.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/load_intex_collateral.py')
-rw-r--r--python/load_intex_collateral.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/load_intex_collateral.py b/python/load_intex_collateral.py
index 4f3d9fea..8afc97b5 100644
--- a/python/load_intex_collateral.py
+++ b/python/load_intex_collateral.py
@@ -39,6 +39,9 @@ def upload_data(workdate, conn, cursor):
with open( os.path.join(common.root, "data", "Collaterals_" + workdate, dealname), "r") as fh:
dr = csv.DictReader(fh, dialect = 'excel-tab')
missingfields = set(fields) - set(dr.fieldnames)
+ if "LoanX ID" in missingfields:
+ print "LoanX ID column is missing. Probably an error in exporting from intex"
+ pdb.set_trace()
dealname = dealname.split(',')[0].lower()
data = []
for line in dr: