fix in data import tool during msg display

This commit is contained in:
Anand Doshi 2012-10-18 14:51:48 +05:30
parent edd058792f
commit 79bbd1595c

View file

@ -167,7 +167,8 @@ def upload():
ret.append(import_doc(d, doctype, overwrite, row_idx))
except Exception, e:
error = True
ret.append('Error for row (#%d) %s : %s' % (row_idx, row[1], cstr(e)))
ret.append('Error for row (#%d) %s : %s' % (row_idx,
len(row)>1 and row[1] or "", cstr(e)))
webnotes.errprint(webnotes.getTraceback())
if error: