Quellcode durchsuchen

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

Tomas Zigo vor 4 Jahren
Ursprung
Commit
6549c8c739
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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: