[GRASS-SVN] r39155 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 12 17:15:37 EDT 2009


Author: martinl
Date: 2009-09-12 17:15:37 -0400 (Sat, 12 Sep 2009)
New Revision: 39155

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py
Log:
don't chrash if keywords are empty


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py	2009-09-12 21:06:24 UTC (rev 39154)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py	2009-09-12 21:15:37 UTC (rev 39155)
@@ -174,8 +174,9 @@
                     if child.tag == 'command':
                         module = child.text
                     if child.tag == 'keywords':
-                        keywords = child.text.split(',')
-                
+                        if child.text:
+                            keywords = child.text.split(',')
+                    
                 if module:
                     modules[module] = { 'desc': description,
                                         'keywords' : keywords }



More information about the grass-commit mailing list