[GRASS-SVN] r62328 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 21 13:00:09 PDT 2014
Author: martinl
Date: 2014-10-21 13:00:09 -0700 (Tue, 21 Oct 2014)
New Revision: 62328
Modified:
grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
Log:
sqlbuilder: check if vector map exists
Modified: grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2014-10-21 19:24:00 UTC (rev 62327)
+++ grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2014-10-21 20:00:09 UTC (rev 62328)
@@ -55,6 +55,8 @@
self.vectmap = vectmap # fullname
if not "@" in self.vectmap:
self.vectmap = grass.find_file(self.vectmap, element = 'vector')['fullname']
+ if not self.vectmap:
+ grass.fatal(_("Vector map <%s> not found") % vectmap)
self.mapname, self.mapset = self.vectmap.split("@", 1)
# db info
More information about the grass-commit
mailing list