Handle exception in rpcprogress for issue410

This commit is contained in:
Cédric Krier committed 2008-10-05 23:32:51 +02:00
1 parent 1aafb3b1f4
commit fc89bbc16a
1 file changed
+5 -1
+5 -1
View File
@@ -162,7 +162,11 @@ class Wizard(object):
ctx['active_ids'] = datas.get('ids')
rpcprogress = common.RPCProgress('execute', ('wizard',
'execute', wiz_id, datas, state, ctx), parent)
res = rpcprogress.run()
try:
res = rpcprogress.run()
except Exception, exception:
common.process_exception(exception, parent)
break
if not res:
if dia:
res = {'type': 'form'}