[GRASS-SVN] r72438 - grass/trunk/scripts/db.droptable

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 20 12:25:01 PDT 2018


Author: mmetz
Date: 2018-03-20 12:25:01 -0700 (Tue, 20 Mar 2018)
New Revision: 72438

Modified:
   grass/trunk/scripts/db.droptable/db.droptable.py
Log:
db.droptable: fatal -> warning if table not found, as for g.remove

Modified: grass/trunk/scripts/db.droptable/db.droptable.py
===================================================================
--- grass/trunk/scripts/db.droptable/db.droptable.py	2018-03-20 19:09:33 UTC (rev 72437)
+++ grass/trunk/scripts/db.droptable/db.droptable.py	2018-03-20 19:25:01 UTC (rev 72438)
@@ -75,8 +75,9 @@
 
     # check if table exists
     if not grass.db_table_exist(table):
-        grass.fatal(_("Table <%s> not found in database <%s>") %
-                    (table, database))
+        grass.warning(_("Table <%s> not found in database <%s>") %
+                       (table, database))
+        sys.exit(0)
 
     # check if table is used somewhere (connected to vector map)
     used = grass.db.db_table_in_vector(table)



More information about the grass-commit mailing list