[GRASS-SVN] r46598 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 8 04:27:11 EDT 2011


Author: martinl
Date: 2011-06-08 01:27:11 -0700 (Wed, 08 Jun 2011)
New Revision: 46598

Modified:
   grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: fix UpdateMapsets()


Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2011-06-07 19:02:25 UTC (rev 46597)
+++ grass/trunk/gui/wxpython/gis_set.py	2011-06-08 08:27:11 UTC (rev 46598)
@@ -599,7 +599,7 @@
                                   location = locationName,
                                   gisdbase = self.gisdbase)
             
-            if not ret:
+            if ret == '':
                 raise gcmd.GError(_("No mapsets available in location <%s>") % locationName)
             
             for line in ret.splitlines():



More information about the grass-commit mailing list