[GRASS-SVN] r58223 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 14 12:58:04 PST 2013


Author: martinl
Date: 2013-11-14 12:58:04 -0800 (Thu, 14 Nov 2013)
New Revision: 58223

Modified:
   grass/trunk/gui/wxpython/core/gconsole.py
Log:
wxGUI: fix py script interface check (when script is not found)


Modified: grass/trunk/gui/wxpython/core/gconsole.py
===================================================================
--- grass/trunk/gui/wxpython/core/gconsole.py	2013-11-14 20:50:41 UTC (rev 58222)
+++ grass/trunk/gui/wxpython/core/gconsole.py	2013-11-14 20:58:04 UTC (rev 58223)
@@ -549,10 +549,9 @@
                         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:



More information about the grass-commit mailing list