small bugfix for better error message when import crash

bzr revid: fp@tinyerp.com-fc168b62b0815bd5716855996c38be6d8341145a
This commit is contained in:
Fabien Pinckaers 2008-03-19 20:43:48 +00:00
parent e7c9fa4bb1
commit 7e294cadad
1 changed files with 4 additions and 1 deletions

View File

@ -812,7 +812,10 @@ class orm(object):
except Exception, e:
logger.notifyChannel("import",netsvc.LOG_ERROR, e)
cr.rollback()
return (-1, res, e[0], warning)
try:
return (-1, res, e[0], warning)
except:
return (-1, res, e[0], '')
done += 1
#
# TODO: Send a request with the result and multi-thread !