diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 3a4b8ca4..99c13b82 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2320,7 +2320,10 @@ class TuneAutopicker(QWidget): def get_current_event_autopicks(self, station): event = self.get_current_event() if event.pylot_autopicks: - return event.pylot_autopicks[station] + if station in event.pylot_autopicks: + return event.pylot_autopicks[station] + else: + return def get_current_station(self): return str(self.stationBox.currentText()).split('.')[-1]