You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. make sure django DEBUG is set to TRUE
2. upload a file
3. do not make column selections for at least one field on the 2nd page
4. hit submit
What is the expected output? What do you see instead?
You should see a page displaying the rows with errors in them.
However, you receive a Django type error "cannot concatenate 'str' and
'IntegrityError' objects"
What version of the product are you using? On what operating system?
I"m using Python 2.5.2 running on Ubuntu.
django-batchimport. Version 0.1 introduction import. This appears to be the
latest as of this writing. I SVN'd it only 4 days ago.
Please provide any additional information below.
I found a solution to this. The problem is this line...
status_msg = 'spreadsheet row#' + str(row)+' ERROR: ' + sys.exc_info()[1]
is trying to concatenate an IntegrityError object.
I simply converted these two objects to strings before concatenation...
status_msg = 'spreadsheet row#' + str(row)+ str(' ERROR: ') +
str(sys.exc_info()[1])
Original issue reported on code.google.com by davidyna...@gmail.com on 20 Jan 2009 at 8:54
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
davidyna...@gmail.com
on 20 Jan 2009 at 8:54The text was updated successfully, but these errors were encountered: