浏览代码

wxGUI/menuform: ignore warning when parsing command
(merge https://trac.osgeo.org/grass/changeset/44801 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44802 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 14 年之前
父节点
当前提交
9ca35d680e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_modules/menuform.py

+ 1 - 1
gui/wxpython/gui_modules/menuform.py

@@ -2135,7 +2135,7 @@ def getInterfaceDescription(cmd):
     except OSError, e:
         raise gcmd.GException, _("Unable to fetch interface description for command '%s'. "
                                  "Details: %s") % (cmd, repr(e))
-    if cmderr:
+    if cmderr and cmderr[:7] != 'WARNING':
         raise gcmd.GException, _("Unable to fetch interface description for command '%s'. "
                                  "Details: %s") % (cmd, cmderr)