[GRASS-SVN] r72623 - grass/branches/releasebranch_7_4/scripts/db.droptable
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 17 06:01:00 PDT 2018
Author: neteler
Date: 2018-04-17 06:01:00 -0700 (Tue, 17 Apr 2018)
New Revision: 72623
Modified:
grass/branches/releasebranch_7_4/scripts/db.droptable/db.droptable.py
Log:
db.droptable: fatal -> warning if table not found, as for g.remove (trunk, r72438)
Modified: grass/branches/releasebranch_7_4/scripts/db.droptable/db.droptable.py
===================================================================
--- grass/branches/releasebranch_7_4/scripts/db.droptable/db.droptable.py 2018-04-17 09:27:49 UTC (rev 72622)
+++ grass/branches/releasebranch_7_4/scripts/db.droptable/db.droptable.py 2018-04-17 13:01:00 UTC (rev 72623)
@@ -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