[GRASS-SVN] r39156 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 12 17:17:53 EDT 2009
Author: martinl
Date: 2009-09-12 17:17:53 -0400 (Sat, 12 Sep 2009)
New Revision: 39156
Modified:
grass/trunk/gui/wxpython/gui_modules/menudata.py
Log:
don't chrash if keywords are empty
(merge r39155 from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/menudata.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menudata.py 2009-09-12 21:15:37 UTC (rev 39155)
+++ grass/trunk/gui/wxpython/gui_modules/menudata.py 2009-09-12 21:17:53 UTC (rev 39156)
@@ -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