diff --git a/Orange/widgets/data/owfeatureconstructor.py b/Orange/widgets/data/owfeatureconstructor.py index 83c2100d8a6..f714d4d17db 100644 --- a/Orange/widgets/data/owfeatureconstructor.py +++ b/Orange/widgets/data/owfeatureconstructor.py @@ -12,6 +12,9 @@ import builtins import math import random +import logging + +from traceback import format_exception_only from collections import namedtuple, OrderedDict from itertools import chain, count @@ -581,7 +584,9 @@ def remove_invalid_expression(desc): try: data = Orange.data.Table(new_domain, self.data) except Exception as err: - self.error(err.args[0]) + log = logging.getLogger(__name__) + log.error("", exc_info=True) + self.error("".join(format_exception_only(type(err), err)).rstrip()) return disc_attrs_not_ok = self.check_attrs_values( [var for var in attrs if var.is_discrete], data)