Don't try/except to change the exception kind now it works for all exception in wizard

bzr revid: ced-88bc4c727deca2d3c7f5c66c9677e6ae3dc7e1ea
This commit is contained in:
ced 2007-10-05 05:24:32 +00:00
parent fdeb5049ad
commit 38e12990c9
1 changed files with 1 additions and 4 deletions

View File

@ -123,10 +123,7 @@ def _write(self, cr, uid, data, emp_id, context):
def _sign_out_result_end(self, cr, uid, data, context):
emp_obj = pooler.get_pool(cr.dbname).get('hr.employee')
emp_id = data['form']['emp_id']
try:
emp_obj.sign_out(cr, uid, [emp_id], dt=data['form']['date'])
except except_osv, e:
raise wizard.except_wizard(e.name, e.value)
emp_obj.sign_out(cr, uid, [emp_id], dt=data['form']['date'])
_write(self, cr, uid, data, emp_id, context)
return {}