瀏覽代碼

db.droptable: fatal -> warning if table not found, as for g.remove

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72438 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 年之前
父節點
當前提交
4e2409525e
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      scripts/db.droptable/db.droptable.py

+ 3 - 2
scripts/db.droptable/db.droptable.py

@@ -75,8 +75,9 @@ def main():
 
     # 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)