From 659d592e6a47aae3bd1ed9967977c921f25d8737 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 30 Apr 2015 16:20:45 +0200 Subject: [PATCH] [FIX] mis builder: Catch exception on ValueError and on NameError --- mis_builder/models/mis_builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mis_builder/models/mis_builder.py b/mis_builder/models/mis_builder.py index 3e4cf638..61c82a69 100644 --- a/mis_builder/models/mis_builder.py +++ b/mis_builder/models/mis_builder.py @@ -29,7 +29,6 @@ import re import traceback import pytz - from openerp.api import Environment from openerp.osv import orm, fields from openerp import tools @@ -578,7 +577,7 @@ class mis_report_instance_period(orm.Model): kpi_val = None kpi_val_rendered = '#DIV/0' kpi_val_comment += '\n\n%s' % (traceback.format_exc(),) - except NameError: + except (NameError, ValueError): recompute_queue.append(kpi) kpi_val = None kpi_val_rendered = '#ERR'