[bugfix] entering if when len(mag) == 1

This commit is contained in:
Marcel Paffrath 2021-02-01 16:03:23 +01:00
parent 172786dc6d
commit bfec58cc24

View File

@ -1389,7 +1389,7 @@ class MainWindow(QMainWindow):
lat = origin.latitude
lon = origin.longitude
depth = origin.depth
if len(event.magnitudes) >= 1:
if len(event.magnitudes) > 1:
moment_magnitude = event.magnitudes[0]
local_magnitude = event.magnitudes[1]
localmag = '%4.1f' % local_magnitude.mag