[GRASS-SVN] r64728 - grass/branches/releasebranch_7_0/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 23 03:56:47 PST 2015
Author: martinl
Date: 2015-02-23 03:56:47 -0800 (Mon, 23 Feb 2015)
New Revision: 64728
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/core/treemodel.py
Log:
wxGUI: fix extension manager when metadata are not available
Modified: grass/branches/releasebranch_7_0/gui/wxpython/core/treemodel.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/core/treemodel.py 2015-02-23 11:53:38 UTC (rev 64727)
+++ grass/branches/releasebranch_7_0/gui/wxpython/core/treemodel.py 2015-02-23 11:56:47 UTC (rev 64728)
@@ -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]
+ try:
+ return len(self.data[key]) and value in self.data[key]
+ except KeyError:
+ return False
return False
More information about the grass-commit
mailing list