From 509629740f782e11d22d7cf0c000bc0423782d7f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 30 May 2022 14:24:50 +0200 Subject: _corr_by_param: catch TypeError as well --- lib/parameters.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/parameters.py b/lib/parameters.py index 095642f..300bb6f 100644 --- a/lib/parameters.py +++ b/lib/parameters.py @@ -153,10 +153,8 @@ def _corr_by_param(attribute_data, param_values, param_index): # Building a correlation coefficient is pointless in this case # -> assume no correlation return 0.0 - except ValueError: - logger.error( - "ValueError in _corr_by_param(param_index={})".format(param_index) - ) + except (TypeError, ValueError) as e: + logger.error(f"{e} in _corr_by_param(param_index={param_index})") logger.error( "while executing np.corrcoef({}, {}))".format( attribute_data, param_values -- cgit v1.2.3