[FIX] pylint

pull/113/head
Holger Brunn 2015-01-14 17:09:09 +01:00
parent 62e4a72bdd
commit b5333faed7
1 changed files with 2 additions and 3 deletions

View File

@ -18,10 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import logging
from openerp import models, fields, api, exceptions
from openerp.tools.safe_eval import safe_eval
from openerp import SUPERUSER_ID, _
from openerp import _
class res_groups(models.Model):
@ -52,7 +51,7 @@ class res_groups(models.Model):
def _check_dynamic_group_condition(self):
try:
self.filtered('is_dynamic').eval_dynamic_group_condition()
except (NameError, SyntaxError, TypeError) as e:
except (NameError, SyntaxError, TypeError):
raise exceptions.ValidationError(
_('The condition doesn\'t evaluate correctly!'))