astrodatagui: fix empty spectral type insertion
This commit is contained in:
@@ -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 = "-"
|
||||||
|
|||||||
Reference in New Issue
Block a user