Skip to content

Commit

Permalink
fix test for number of areas in user polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Nov 21, 2019
1 parent f24fbb3 commit 84c6901
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -169,7 +169,7 @@ def get_aoi(vector=None):

if gs.vector_info_topo(vector)['areas'] <= 0:
gs.fatal(_("No areas found in AOI map <{}>...").format(vector))
else:
elif gs.vector_info_topo(vector)['areas'] > 1:
gs.warning(_("More than one area found in AOI map <{}>. \
Using only the first area...").format(vector))

Expand Down

0 comments on commit 84c6901

Please sign in to comment.