Browse Source

GUI: do not fail on invalid RC file (empty) (#185)

Martin Landa 5 years ago
parent
commit
fedff42c54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gis_set.py

+ 1 - 1
gui/wxpython/gis_set.py

@@ -285,7 +285,7 @@ class GRASSStartup(wx.Frame):
 
         self.OnSetDatabase(None)
         location = self.GetRCValue("LOCATION_NAME")
-        if location == "<UNKNOWN>":
+        if location == "<UNKNOWN>" or location is None:
             return
         if not os.path.isdir(os.path.join(self.gisdbase, location)):
             location = None