[GRASS-SVN] r62614 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 5 05:55:00 PST 2014
Author: annakrat
Date: 2014-11-05 05:55:00 -0800 (Wed, 05 Nov 2014)
New Revision: 62614
Modified:
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: call vector_db only with valid parameters; fixed previously ignored error coming from vnet initialization after run_command API change #2326
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2014-11-05 13:32:06 UTC (rev 62613)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2014-11-05 13:55:00 UTC (rev 62614)
@@ -727,6 +727,9 @@
def _CheckDBConnection(self):
"""Check DB connection"""
+ # if map is not defined (happens with vnet initialization)
+ if not self.map:
+ return False
nuldev = file(os.devnull, 'w+')
self.layers = grass.vector_db(map = self.map, stderr = nuldev)
nuldev.close()
More information about the grass-commit
mailing list