From 76ae049dd519ecabe216384926263f89b60dbc0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaka=20Kokos=CC=8Car?= Date: Fri, 8 Dec 2023 10:43:11 +0100 Subject: [PATCH] widgets.data: get_survival_endpoints if domain is not None --- orangecontrib/survival_analysis/widgets/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orangecontrib/survival_analysis/widgets/data.py b/orangecontrib/survival_analysis/widgets/data.py index d23d670..60af0e7 100644 --- a/orangecontrib/survival_analysis/widgets/data.py +++ b/orangecontrib/survival_analysis/widgets/data.py @@ -33,7 +33,7 @@ def get_survival_endpoints( ) -> Tuple[Optional[Variable], Optional[Variable]]: time_var = None event_var = None - if contains_survival_endpoints(domain): + if domain and contains_survival_endpoints(domain): class_vars = domain.class_vars for var in class_vars: surv_var_type = var.attributes[TIME_TO_EVENT_VAR]