From 16f6e2d1fd5e6e8a454afc4eca450a62b4998dc4 Mon Sep 17 00:00:00 2001 From: Ludger Kueperkoch Date: Wed, 7 Oct 2020 10:37:41 +0200 Subject: [PATCH] [Bugfix] localmag and momentmag referenced before assignment. --- PyLoT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyLoT.py b/PyLoT.py index cbc9e16c..0b1b91c1 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -1373,7 +1373,7 @@ class MainWindow(QMainWindow): event_ref = event.isRefEvent() event_test = event.isTestEvent() - time = lat = lon = depth = mag = None + time = lat = lon = depth = localmag = momentmag = None if len(event.origins) == 1: origin = event.origins[0] time = origin.time + 0 # add 0 because there was an exception for time = 0s