astrodatagui: fix empty spectral type insertion

This commit is contained in:
2024-05-22 14:16:52 +02:00
parent d3493c5fbd
commit b8e9c5b97f
+2
View File
@@ -124,6 +124,8 @@ class AstrodataGUI(QtWidgets.QMainWindow):
try: try:
specType = result["SP_TYPE"][0] specType = result["SP_TYPE"][0]
if(specType == ""):
specType = "-"
except: except:
print("No spectral type found") print("No spectral type found")
specType = "-" specType = "-"