From 3db89697d3bdbbcb3140db87d08c53b23ec3d401 Mon Sep 17 00:00:00 2001 From: knoflook Date: Sat, 3 Dec 2022 21:47:22 +0100 Subject: [PATCH] chore: add a comment --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index fe5fcee..7c5566e 100755 --- a/main.py +++ b/main.py @@ -245,6 +245,8 @@ class MainWindow(Gtk.Window): uid = self.transmissions[self.transmission_list.get_selected_row().get_index()][0] trxData = db.get_transmission_data(uid) except AttributeError: + # when adding a new transmission, this function is called before any row is selected and logs + # an error. I don't know when or why that happens, but this does the job. return except: log.critical(error)