Forráskód Böngészése

Fix undefined variable

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55957 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 éve
szülő
commit
e25f856650
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      lib/python/script/core.py

+ 3 - 3
lib/python/script/core.py

@@ -918,7 +918,7 @@ def list_grouped(type, check_search_path = True):
     @return directory of mapsets/elements
     """
     if type == 'raster' or type == 'cell':
-        verbose(_('Element type should be "rast" and not "%s"') % element)
+        verbose(_('Element type should be "rast" and not "%s"') % type)
         type = 'rast'
     dashes_re = re.compile("^----+$")
     mapset_re = re.compile("<(.*)>")
@@ -1001,7 +1001,7 @@ def mlist_strings(type, pattern = None, mapset = None, flag = ''):
     @return list of elements
     """
     if type == 'raster' or type == 'cell':
-        verbose(_('Element type should be "rast" and not "%s"') % element)
+        verbose(_('Element type should be "rast" and not "%s"') % type)
         type = 'rast'
     result = list()
     for line in read_command("g.mlist",
@@ -1049,7 +1049,7 @@ def mlist_grouped(type, pattern = None, check_search_path = True, flag = ''):
     @return directory of mapsets/elements
     """
     if type == 'raster' or type == 'cell':
-        verbose(_('Element type should be "rast" and not "%s"') % element)
+        verbose(_('Element type should be "rast" and not "%s"') % type)
         type = 'rast'
     result = {}
     if check_search_path: