git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@70002 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -119,7 +119,7 @@ def dataset_mapcalculator(inputs, output, type, expression, base, method,
dbif=dbif)
# In case samples are not found
- if not list and len(list) == 0:
+ if not list or len(list) == 0:
dbif.close()
msgr.message(_("No samples found for map calculation"))
return 0