Explorar o código

wxGUI/g.gui.psmap: fix add legend error message (#1041)

Tomas Zigo %!s(int64=4) %!d(string=hai) anos
pai
achega
3d7f404973
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/psmap/utils.py

+ 1 - 1
gui/wxpython/psmap/utils.py

@@ -402,7 +402,7 @@ def getRasterType(map):
     if map is None:
         map = ''
     file = grass.find_file(name=map, element='cell')
-    if file['file']:
+    if file.get('file'):
         rasterType = grass.raster_info(map)['datatype']
         return rasterType
     else: