소스 검색

wxGUI: fix extension manager when metadata are not available

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64728 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 년 전
부모
커밋
c5a244c80b
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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]
+            try:
+                return len(self.data[key]) and value in self.data[key]
+            except KeyError:
+                return False
         
         return False