[GRASS-SVN] r68262 - grass/branches/releasebranch_7_0/scripts/v.db.join

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 15 16:19:12 PDT 2016


Author: martinl
Date: 2016-04-15 16:19:12 -0700 (Fri, 15 Apr 2016)
New Revision: 68262

Modified:
   grass/branches/releasebranch_7_0/scripts/v.db.join/v.db.join.py
Log:
v.db.join: cache exception from vector_layer_db() - usually when vector map not found (merge r68261 from trunk)

Modified: grass/branches/releasebranch_7_0/scripts/v.db.join/v.db.join.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.db.join/v.db.join.py	2016-04-15 23:16:10 UTC (rev 68261)
+++ grass/branches/releasebranch_7_0/scripts/v.db.join/v.db.join.py	2016-04-15 23:19:12 UTC (rev 68262)
@@ -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