[GRASS-SVN] r40609 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 21 23:39:14 EST 2010


Author: cmbarton
Date: 2010-01-21 23:39:11 -0500 (Thu, 21 Jan 2010)
New Revision: 40609

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
Log:
Better trapping of command argument errors

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py	2010-01-22 03:27:06 UTC (rev 40608)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py	2010-01-22 04:39:11 UTC (rev 40609)
@@ -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