Take into account that creation info sometimes is not available.

This commit is contained in:
Ludger Küperkoch 2020-06-03 13:19:31 +02:00
parent 6ad187b7fa
commit fa093ccac6

View File

@ -1969,6 +1969,10 @@ class PickDlg(QDialog):
starttime = trace.stats.starttime
station_coords = self.metadata.get_coordinates(station_id, starttime)
origins = self.pylot_event.origins
if phases == ['None', 'None']:
print("get_arrivals: Creation info (manual or auto) not available!")
print("Return!")
return
if origins:
source_origin = origins[0]
else: