[GRASS-SVN] r53298 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 1 23:44:34 PDT 2012


Author: annakrat
Date: 2012-10-01 23:44:33 -0700 (Mon, 01 Oct 2012)
New Revision: 53298

Modified:
   grass/trunk/gui/wxpython/gui_core/prompt.py
Log:
wxGUI: added error handling for #1750 

Modified: grass/trunk/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/prompt.py	2012-10-01 21:37:50 UTC (rev 53297)
+++ grass/trunk/gui/wxpython/gui_core/prompt.py	2012-10-02 06:44:33 UTC (rev 53298)
@@ -860,7 +860,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