[GRASS-SVN] r68261 - grass/trunk/scripts/v.db.join
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 15 16:16:10 PDT 2016
Author: martinl
Date: 2016-04-15 16:16:10 -0700 (Fri, 15 Apr 2016)
New Revision: 68261
Modified:
grass/trunk/scripts/v.db.join/v.db.join.py
Log:
v.db.join: cache exception from vector_layer_db() - usually when vector map not found
Modified: grass/trunk/scripts/v.db.join/v.db.join.py
===================================================================
--- grass/trunk/scripts/v.db.join/v.db.join.py 2016-04-14 07:01:56 UTC (rev 68260)
+++ grass/trunk/scripts/v.db.join/v.db.join.py 2016-04-15 23:16:10 UTC (rev 68261)
@@ -73,8 +73,11 @@
else:
scolumns = None
- f = grass.vector_layer_db(map, layer)
-
+ try:
+ f = grass.vector_layer_db(map, layer)
+ except CalledModuleError:
+ sys.exit(1)
+
maptable = f['table']
database = f['database']
driver = f['driver']
More information about the grass-commit
mailing list