Преглед изворни кода

Fix bug in db.in.ogr.py

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33569 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements пре 17 година
родитељ
комит
4f36cb9692
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      scripts/db.in.ogr/db.in.ogr.py

+ 2 - 2
scripts/db.in.ogr/db.in.ogr.py

@@ -100,11 +100,11 @@ def main():
 
     # ... and immediately drop the empty geometry
     vectfile = grass.find_file(output, element = 'vector', mapset = mapset)['file']
-    if not file:
+    if not vectfile:
 	grass.fatal("Something went wrong. Should not happen")
     else:
 	# remove the vector part
-	grass.try_remove(file)
+	grass.try_remove(vectfile)
 
     # get rid of superfluous auto-added cat column (and cat_ if present)
     grass.run_command('db.dropcol', quiet = True, flags = 'f', table = output,