[GRASS-SVN] r66354 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 27 15:05:26 PDT 2015
Author: annakrat
Date: 2015-09-27 15:05:26 -0700 (Sun, 27 Sep 2015)
New Revision: 66354
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
Log:
wxGUI: catch and handle error from typo in console (merge from trunk, r65975)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py 2015-09-27 22:00:00 UTC (rev 66353)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py 2015-09-27 22:05:26 UTC (rev 66354)
@@ -2360,6 +2360,8 @@
cmd_validated = [cmd[0]]
for option in cmd[1:]:
if option[0] == '-': # flag
+ if len(option) == 1: # catch typo like 'g.proj - w'
+ raise gcmd.GException, _("Unable to parse command '%s'") % ' '.join(cmd)
if option[1] == '-':
self.grass_task.set_flag(option[2:], True)
else:
More information about the grass-commit
mailing list