[bugfix] trying to access station not in autopicks dictionary

This commit is contained in:
Marcel Paffrath 2018-06-05 15:11:43 +02:00
parent 9b5fe3baba
commit 5e161d308a

View File

@ -3127,7 +3127,8 @@ 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]
def get_current_station(self):
return str(self.stationBox.currentText()).split('.')[-1]