Explorar o código

Better trapping of command argument errors (backport from develbranch_6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40610 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton %!s(int64=15) %!d(string=hai) anos
pai
achega
cd55460c20
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      gui/wxpython/gui_modules/prompt.py

+ 4 - 1
gui/wxpython/gui_modules/prompt.py

@@ -770,7 +770,10 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
             except:
                 arg = ''
             
-            self.promptType = self.cmdDesc.get_param(arg)['prompt']
+            try:
+                self.promptType = self.cmdDesc.get_param(arg)['prompt']
+            except:
+                pass
             
             if event.GetKeyCode() == 61:
                 # autocompletion after '='