Browse Source

t.rast.mapcalc: TypeError: object of type 'NoneType' has no len() (see https://trac.osgeo.org/grass/ticket/3214)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70001 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 years ago
parent
commit
db1ab7a99a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/python/temporal/mapcalc.py

+ 1 - 1
lib/python/temporal/mapcalc.py

@@ -123,7 +123,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