[bugfix] trying to access station not in autopicks dictionary
This commit is contained in:
parent
9b5fe3baba
commit
5e161d308a
@ -3127,7 +3127,8 @@ class TuneAutopicker(QWidget):
|
|||||||
def get_current_event_autopicks(self, station):
|
def get_current_event_autopicks(self, station):
|
||||||
event = self.get_current_event()
|
event = self.get_current_event()
|
||||||
if event.pylot_autopicks:
|
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):
|
def get_current_station(self):
|
||||||
return str(self.stationBox.currentText()).split('.')[-1]
|
return str(self.stationBox.currentText()).split('.')[-1]
|
||||||
|
Loading…
Reference in New Issue
Block a user