[GRASS-SVN] r53299 - grass/branches/develbranch_6/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 1 23:50:57 PDT 2012


Author: annakrat
Date: 2012-10-01 23:50:56 -0700 (Mon, 01 Oct 2012)
New Revision: 53299

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

Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py	2012-10-02 06:44:33 UTC (rev 53298)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py	2012-10-02 06:50:56 UTC (rev 53299)
@@ -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