소스 검색

wxGUI: added error handling for https://trac.osgeo.org/grass/ticket/1750

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53298 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 년 전
부모
커밋
cba84015a4
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      gui/wxpython/gui_core/prompt.py

+ 5 - 1
gui/wxpython/gui_core/prompt.py

@@ -860,7 +860,11 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
         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] == ' ':