Skip to content

Commit

Permalink
wxGUI/g.gui.psmap: fix add legend error message (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and neteler committed Oct 22, 2020
1 parent e3d041f commit 3d7f404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/psmap/utils.py
Expand Up @@ -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:
Expand Down

0 comments on commit 3d7f404

Please sign in to comment.