[GRASS-SVN] r40610 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 21 23:45:44 EST 2010
Author: cmbarton
Date: 2010-01-21 23:45:43 -0500 (Thu, 21 Jan 2010)
New Revision: 40610
Modified:
grass/trunk/gui/wxpython/gui_modules/prompt.py
Log:
Better trapping of command argument errors (backport from develbranch_6)
Modified: grass/trunk/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/prompt.py 2010-01-22 04:39:11 UTC (rev 40609)
+++ grass/trunk/gui/wxpython/gui_modules/prompt.py 2010-01-22 04:45:43 UTC (rev 40610)
@@ -770,7 +770,10 @@
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 '='
More information about the grass-commit
mailing list