[GRASS-SVN] r64727 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 23 03:53:38 PST 2015
Author: martinl
Date: 2015-02-23 03:53:38 -0800 (Mon, 23 Feb 2015)
New Revision: 64727
Modified:
grass/trunk/gui/wxpython/core/treemodel.py
Log:
wxGUI: fix extension manager when metadata are not available
Modified: grass/trunk/gui/wxpython/core/treemodel.py
===================================================================
--- grass/trunk/gui/wxpython/core/treemodel.py 2015-02-23 08:52:07 UTC (rev 64726)
+++ grass/trunk/gui/wxpython/core/treemodel.py 2015-02-23 11:53:38 UTC (rev 64727)
@@ -195,7 +195,10 @@
if not self.data:
return False
if key in ('command', 'keywords', 'description'):
- return len(self.data[key]) and (value in self.data[key] or value == '*')
+ try:
+ return len(self.data[key]) and (value in self.data[key] or value == '*')
+ except KeyError:
+ return False
return False
More information about the grass-commit
mailing list