[GRASS-SVN] r53300 - grass/branches/releasebranch_6_4/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 1 23:51:48 PDT 2012


Author: annakrat
Date: 2012-10-01 23:51:48 -0700 (Mon, 01 Oct 2012)
New Revision: 53300

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py
Log:
wxGUI: added error handling for #1750 (merge from trunk, r53298)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py	2012-10-02 06:50:56 UTC (rev 53299)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py	2012-10-02 06:51:48 UTC (rev 53300)
@@ -863,7 +863,11 @@
         except IndexError:
             return None
         
-        if len(utils.split(str(entry))) > 1:
+        try:
+            splitted = utils.split(str(entry))
+        except ValueError: # No closing quotation error
+            return None
+        if len(splitted) > 1:
             if cmd in globalvar.grassCmd:
                 toComplete['cmd'] = cmd
                 if entry[-1] == ' ':



More information about the grass-commit mailing list