For unknown reasons sometimes station and network information are not

avaialble, avoid program failure.
This commit is contained in:
Ludger Küperkoch 2020-09-16 16:16:53 +02:00
parent e4cfebe989
commit f93499da7d

View File

@ -2468,8 +2468,10 @@ class MainWindow(QMainWindow):
def pickDialog(self, wfID, seed_id=None):
if not seed_id:
seed_id = self.getTraceID(wfID)
network, station, location = seed_id.split('.')[:3]
if not station or not network:
try:
network, station, location = seed_id.split('.')[:3]
except:
print("Warning! No network, station, and location info available!")
return
self.update_status('picking on station {0}'.format(station))
data = self.get_data().getOriginalWFData().copy()