diff --git a/trytond/error.py b/trytond/error.py index 97a86bdf06..44995c0e12 100644 --- a/trytond/error.py +++ b/trytond/error.py @@ -45,7 +45,7 @@ class WarningErrorMixin(object): if error_args is not None: try: error = error % error_args - except TypeError: + except (TypeError, KeyError): pass if error_description: @@ -64,7 +64,7 @@ class WarningErrorMixin(object): try: error_description = (error_description % error_description_args) - except TypeError: + except (TypeError, KeyError): pass if raise_exception: raise UserError(error, error_description)