[FIX] website: server action demo data: ValueError is not defined, do something generic

bzr revid: tde@openerp.com-20140205110118-6c5mq24x8e806vvn
This commit is contained in:
Thibault Delavallée 2014-02-05 12:01:18 +01:00
parent 1c608569ca
commit 8d1713170a
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ post_partner_id = context.get('post', {}).get('partner_id')
if post_partner_id:
try:
post_partner_id = int(post_partner_id)
except ValueError:
except:
post_partner_id = False
if post_partner_id:
partner_ids = pool['res.partner'].search(cr, uid, [('id', '=', post_partner_id)], context=context)