From b8e9c5b97fe65fd60a1b89f0f3341c7178bdbe0a Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Wed, 22 May 2024 14:16:52 +0200 Subject: [PATCH] astrodatagui: fix empty spectral type insertion --- main/astrodatagui/AstrodataGUI.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/astrodatagui/AstrodataGUI.py b/main/astrodatagui/AstrodataGUI.py index d389c3e..fb2a733 100644 --- a/main/astrodatagui/AstrodataGUI.py +++ b/main/astrodatagui/AstrodataGUI.py @@ -124,6 +124,8 @@ class AstrodataGUI(QtWidgets.QMainWindow): try: specType = result["SP_TYPE"][0] + if(specType == ""): + specType = "-" except: print("No spectral type found") specType = "-"