diff --git a/src/ert/gui/ertwidgets/ensembleselector.py b/src/ert/gui/ertwidgets/ensembleselector.py index 38fb9e83241..51589073cd6 100644 --- a/src/ert/gui/ertwidgets/ensembleselector.py +++ b/src/ert/gui/ertwidgets/ensembleselector.py @@ -61,15 +61,7 @@ def __init__( @property def selected_ensemble(self) -> Ensemble: - print("GETTING SELECTED_ENSEMBLE") - print(f"{self.count()=}") - try: - itemData: LocalEnsemble = self.itemData(self.currentIndex()) - except Exception as e: - print(f"{e=}") - raise e - - print(f"{itemData.experiment.is_valid()=}") + itemData: LocalEnsemble | None = self.itemData(self.currentIndex()) return itemData def populate(self) -> None: