瀏覽代碼

wxGUI: fix py script interface check (when script is not found)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58223 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父節點
當前提交
6c264f5066
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      gui/wxpython/core/gconsole.py

+ 1 - 2
gui/wxpython/core/gconsole.py

@@ -549,10 +549,9 @@ class GConsole(wx.EvtHandler):
                         if line[0] is '#' and line[1] is '%':
                             skipInterface = False
                             break
+                    sfile.close()
                 except IOError:
                     pass
-                finally:
-                    sfile.close()
             
             if len(command) == 1 and not skipInterface:
                 try: