Przeglądaj źródła

wxGUI: fix extension manager when metadata are not available

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64727 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 lat temu
rodzic
commit
60d972843a
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      gui/wxpython/core/treemodel.py

+ 4 - 1
gui/wxpython/core/treemodel.py

@@ -195,7 +195,10 @@ class ModuleNode(DictNode):
         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