Improve exception in wizard creation

This commit is contained in:
Cédric Krier
2008-09-06 00:44:41 +02:00
parent 854be9b07c
commit efecf7d7d2
+5 -3
View File
@@ -147,11 +147,13 @@ class Wizard(object):
from tryton.action import Action
if not 'form' in datas:
datas['form'] = {}
args = ('wizard', 'create', action)
try:
wiz_id = rpc.execute('wizard', 'create', action)
wiz_id = rpc.execute(*args)
except Exception, exception:
common.process_exception(exception, parent)
return
wiz_id = common.process_exception(exception, parent, *args)
if not wiz_id:
return
dia = None
while state != 'end':
ctx = context.copy()