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]