small bugfix for better error message when import crash
bzr revid: fp@tinyerp.com-fc168b62b0815bd5716855996c38be6d8341145a
This commit is contained in:
parent
e7c9fa4bb1
commit
7e294cadad
|
@ -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 !
|
||||
|
|
Loading…
Reference in New Issue